Opacity in Grouped Bar Charts with data.frame
オープン
まだ誰も着手していません。
bug
priority: high
- 主要言語
- R
- スター
- 2.7k
- フォーク
- 641
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
When plotting a grouped bar chart with variable opacity with data in a data.frame, the opacity assigned to each column is not the one specified in the data.frame. In the example below, the 2 bars in group "A" are plotted with reduced opacity, as opposed to the 2 bars with colour "C". Strangely, if the data.frame is not ordered then it plots correctly.
library( plotly )
data = data.frame(
x = c( "A", "B", "A", "B" ),
y = c( 1, 2, 3, 4 ),
z = c( "C", "C", "D", "D" ),
opacity = c( 0.3, 0.3, 1, 1 )
)
# removing this lines the plot is correct
data = data[ order( data$x ),]
p = plot_ly(
data = data,
x = ~x,
y = ~y,
color = ~z,
marker = list( opacity = ~opacity ),
type = "bar" ) %>%
layout( barmode = "group" )
show( p )
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、plotly.R にある提供された R の再現コードを、データフレームを順序付けした場合と順序付けしていない場合の両方で実行します。グループ化された棒グラフにおける marker opacity の処理を追跡し、各棒の opacity をデータフレームの値と比較します。データの順序付けによって、低い opacity が適用される棒が変わらなくなれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- r
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100