ggplotly not keeping different line types from geom_errorbar
オープン
まだ誰も着手していません。
- 主要言語
- R
- スター
- 2.7k
- フォーク
- 641
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Thanks for a great package but I noticed one issue:
I have a ggplot which uses geom_errorbar() with a dashed line type. ggplotly removes this line type though. Is there a workaround?
Versions:
> packageVersion("plotly")
[1] ‘4.10.0’
> packageVersion("ggplot2")
[1] ‘3.3.5’
r version: 4.1.1
console: Mac
Issue replicated:
library(ggplot2)
df <- data.frame(
trt = factor(c(1, 1, 2, 2)),
resp = c(1, 5, 3, 4),
group = factor(c(1, 2, 1, 2)),
upper = c(1.1, 5.3, 3.3, 4.2),
lower = c(0.8, 4.6, 2.4, 3.6)
)
p <- ggplot(df, aes(trt, resp, colour = group))
q<- p + geom_errorbar(aes(ymin = lower, ymax = upper), width = 0.2,linetype="dashed")
q
plotly::ggplotly(q)
tagging others: @emiliecottard
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
提供された R の再現コードを ggplot2::geom_errorbar() と plotly::ggplotly() で実行することから始め、次に ggplotly への変換で geom_errorbar の linetype aesthetic がどのように処理されるかを調べてください。レンダリングされた出力を元の破線のエラーバーと比較してください。変換後のプロットで破線のラインタイプが保持されれば、issue は完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- r
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100