plotly / plotly/plotly.R

geom_GeomSignif() has yet to be implemented in plotly

Đang mở
#1,989 2 bình luận 2 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ả

Hi. I am using ggplot to draw bar functions. Tried to convert the ggplot to a plotly graph using ggplotly and got the message to open an issue since the geom_Geomsignif() has yet to be implemented in plotly.
here my code.
library(ggplot)
library(ggsignif)
library(plotly)
p <- ggplot()+geom_bar(data=plot_data1,mapping=aes(x=group,y=mean),fill="white",size=1.5,colour=c("#1E90FF","gold","red"),position=position_dodge(),stat="identity",width=0.6)+geom_jitter(data=plot_data2,mapping=aes(x=group,y=Retive_Abundance,fill=group,colour=group,shape=group),size=2,height=0.05,width=0.1)+scale_colour_manual(values=c("#1E90FF","gold","red"))+geom_signif(data=plot_data2,mapping=aes(x=group,y=Retive_Abundance),comparisons=list(c("N","P"),c("N","T"),c("P","T")),map_signif_level=F,tip_length=c(0,0,0,0,0,0),y_position=c(38,43,40.5),size=1,textsize = 3,test = "t.test")+geom_errorbar(data=plot_data1,mapping=aes(x = group,ymin = mean-sd,ymax=mean+sd),width=0.3,colour=c("#1E90FF","gold","red"),size=0.8)+scale_y_continuous(limits =c(0, 48) ,expand = c(0,0))+theme_classic(base_line_size = 1)+labs(title="White blood cell(WBC)",x="",y="Retive_Abundance")+theme(plot.title=element_text(size = 15,colour="black",hjust = 0.5),axis.title.y = element_text(size=15,colour="black",face="bold",vjust = .5,hjust=0.5,angle=90),legend.title=element_text(size=15,colour="black",face="bold"),legend.text=element_text(size=10,colour="black",face="bold"),axis.text=element_text(size=13,colour="black",face="bold",vjust = 0.5,hjust=0.5,angle=0))
ggplotly(p)
Warning message:
In geom2trace.default(dots[[1L]][[1L]], dots[[2L]][[1L]], dots[[3L]][[1L]]) :
geom_GeomSignif() has yet to be implemented in plotly.
If you'd like to see this geom implemented,
Please open an issue with your example code at
https://github.com/ropensci/plotly/issues

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 tại điểm vào geom2trace.default được nêu trong cảnh báo và tái hiện vấn đề với ví dụ ggplot, ggsignif và plotly được cung cấp. Công việc hoàn tất khi ggplotly xử lý geom_signif mà không có cảnh báo và kết xuất các chú thích về ý nghĩa thống kê trong biểu đồ kết quả.

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

Đánh giá

Công nghệ
plotly, r
Lĩnh vực
data-visualization
Loại issue
Tính năng
Độ 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
35/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.