Make ggplotly respect override.aes in guide_legend
オープン
まだ誰も着手していません。
ggplotly
- 主要言語
- R
- スター
- 2.7k
- フォーク
- 641
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
A short example:
library(ggplot2)
p <- ggplot(economics_long, aes(date, value01, colour = variable)) +
geom_line(size = .5) +
guides(colour = guide_legend(override.aes = list(size = 2)))
p
Notice the thicker lines in the legend on the right

However, this new element is ignored in ggplotly:
ggplotly(p)

This becomes even more critical when using a very low level of alpha, and then needing to adjust it for the legend.
Thanks.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、ggplot2 と ggplotly(p) を使って R の例を実行し、ggplot2 の凡例とインタラクティブな凡例の結果を比較します。ggplotly の凡例変換のエントリーポイントを追跡し、size と alpha を含む guide_legend の override.aes 値が、レンダリングされた凡例に影響することを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- r
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 38/100