Missing polygons in animation
オープン
まだ誰も着手していません。
- 主要言語
- R
- スター
- 2.7k
- フォーク
- 641
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Missing polygons in animation.
The two plant shoots (light green and grey) are expected to reside in one frame, and the two red bars in another frame, but in the animation returned by ggplotly, the light green shoot is missing. How to resolve this issue? Thanks in advance!
# Import the data frame.
[df_all.txt](https://github.com/ropensci/plotly/files/4855628/df_all.txt)
df.all <- read.table('df_all.txt', header=T, row.names=1, sep='\t')
# All frames.
df.all$frame <- as.factor(df.all$frame)
unique(df.all$frame)
# Frame 1.
df1 <- subset(df.all, frame=='HRE2_hypoxia_1')
ggplot(df1, aes(x=x, y=y, frame=frame, group=tissue,value=value))+geom_polygon(fill=df1$color, size=0.2,color='grey70')
# Frame 2.
df2 <- subset(df.all, frame=='HRE2_control_2')
ggplot(df2, aes(x=x, y=y, frame=frame, group=tissue,value=value))+geom_polygon(fill=df2$color, size=0.2,color='grey70')
# Animation where the light green plant shoot is missing.
g <- ggplot(df.all, aes(x=x, y=y, frame=frame, group=tissue,value=value))+geom_polygon(fill=df.all$color, size=0.2,color='grey70')
ggplotly(g)
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、提供されている R の再現コードを df_all.txt で実行し、個々の ggplot フレームと ggplotly(g) アニメーションを比較します。ggplotly アニメーションへの変換を調査し、最初のフレームの 2 つのポリゴンと 2 番目のフレームの 2 本の赤いバーの両方がレンダリングされれば、問題は解決したとみなします。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- r
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 30/100