plotly / plotly/plotly.R

Missing polygons in animation

Đang mở
#1,806 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Ngôn ngữ chính
R
Star
2.7k
Fork
641
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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) 

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu bằng cách chạy bản tái hiện R được cung cấp với df_all.txt và so sánh các frame ggplot riêng lẻ với animation ggplotly(g). Điều tra quá trình chuyển đổi animation ggplotly và coi vấn đề đã được giải quyết khi cả hai polygon trong frame đầu tiên và cả hai thanh màu đỏ trong frame thứ hai đều được render.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
r
Lĩnh vực
data-visualization
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
30/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.