plotly / plotly/plotly.R

geom_GeomSignif() has yet to be implemented in plotly

オープン
#1,989 コメント 2 件 リアクション 2 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
R
スター
2.7k
フォーク
641
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

警告で示されている geom2trace.default エントリポイントから開始し、提供されている ggplot、ggsignif、plotly の例で問題を再現してください。ggplotly が警告なしで geom_signif を処理し、結果のグラフに有意差の注釈を描画できれば、作業は完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
plotly, r
領域
data-visualization
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。