plotly / plotly/plotly.R

Would love to see geom_GeomBracket() to be implemented in plotly

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

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

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

説明

Hello,
I am a big fan of plotly because of its interactive features and unlike any other normal static plots. I usually use ggplot to visualize my data and then use a ggplotly to make my plot into a plotly interactive plot, but for boxplot with p-value bracket , plotly does not show that feature. I would really appreciated if that feature could be added to plotly as well in the future.

df <- ToothGrowth
df$dose <- as.factor(df$dose)
head(df, 3)
stat.test <- df %>%
    group_by(dose) %>%
    t_test(len ~ supp) %>%
    adjust_pvalue(method = "bonferroni") %>%
    add_significance("p.adj")
stat.test
# Create a box plot
bxp <- ggboxplot(
    df, x = "dose", y = "len", 
    color = "supp", palette = c("#00AFBB", "#E7B800")
)

# Add p-values onto the box plots
stat.test <- stat.test %>%
    add_xy_position(x = "dose", dodge = 0.8)
bxp + stat_pvalue_manual(
    stat.test,  label = "p", tip.length = 0
)

#pvalue disappear
ggplotly(bxp + stat_pvalue_manual(
+     stat.test,  label = "p", tip.length = 0
+ ))

Warning message:
In geom2trace.default(dots[[1L]][[1L]], dots[[2L]][[1L]], dots[[3L]][[1L]]) :
geom_GeomBracket() 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 警告から始め、ggplotly が渡された geom_GeomBracket() をどのように処理するかを調べます。ToothGrowth の例を再現し、その後、未実装の geom に関する警告なしで、インタラクティブプロットにブラケットと p 値が表示されることを確認します。

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

評価

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

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

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