Ticktext doesn't show for some numerical values in parallel coordinates plotting.
オープン
まだ誰も着手していません。
plotly.js
- 主要言語
- R
- スター
- 2.7k
- フォーク
- 641
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Currently, I am trying to plot categorical variables in plotly. I run this
(This has incorrect result)
library(plotly)
p <- plot_ly(type = 'parcoords', line = list(color = 'blue'),
dimensions = list(
list(range = c(1,5),
constraintrange = c(1,2),
label = 'A', values = c(1,4)),
list(range = c(1,5),
tickvals = c(1.5,3,4.5),
label = 'B', values = c(3,1.5)),
list(range = c(1,2),
tickvals = c(1,2),
label = 'C', values = c(2,4),
ticktext = c('0','1')),
list(range = c(1,5),
label = 'D', values = c(4,2))
)
)
p
and this: (this has correct, expected result)
library(plotly)
p <- plot_ly(type = 'parcoords', line = list(color = 'blue'),
dimensions = list(
list(range = c(1,5),
constraintrange = c(1,2),
label = 'A', values = c(1,4)),
list(range = c(1,5),
tickvals = c(1.5,3,4.5),
label = 'B', values = c(3,1.5)),
list(range = c(1,2),
tickvals = c(1,2),
label = 'C', values = c(2,4),
ticktext = c(' 0 ',' 1 ')),
list(range = c(1,5),
label = 'D', values = c(4,2))
)
)
p
Notice that the only change is the 3rd ticktext. With spaces, it works correctly but without, it doesn't. Swapping the ('0', '1') out with ('1', '2') or ('male', 'female') also works correctly.
Expected behavior: There should be a 0 label at the bottom and 1 at the top.
Actual behavior: The top label is missing.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、issue にある 2 つの R plot_ly parcoords の例を実行し、スペースありとスペースなしの ticktext 値を比較します。そのエントリーポイントから平行座標の目盛りラベル処理を追跡します。両方の数値ラベル(上部の 1 を含む)がスペースを追加されずにレンダリングされれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- r
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 42/100