Missing polygons in animation
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- R
- Sterne
- 2.7k
- Forks
- 641
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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)
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Führen Sie zunächst die bereitgestellte R-Reproduktion mit df_all.txt aus und vergleichen Sie die einzelnen ggplot-Frames mit der ggplotly(g)-Animation. Untersuchen Sie die Konvertierung der ggplotly-Animation und betrachten Sie das Problem als gelöst, wenn sowohl beide Polygone im ersten Frame als auch beide roten Balken im zweiten Frame gerendert werden.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- r
- Bereich
- data-visualization
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 30/100