Axis labels for NA-Data with factor levels
オープン
まだ誰も着手していません。
- 主要言語
- R
- スター
- 2.7k
- フォーク
- 641
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
When having a NA-Dataframe, but correct facor levels for x and y, the created empty plot does not label the axis according to the factor levels.
In the following example I'd expect an empty plot with axis labels "Entry 1" and "Entry 2" on the x and a range of about [0; 20] on the y axis
data <- data.frame(a = factor(NA, levels = c("Entry1", "Entry2")), b = factor(NA, levels = c(1:20)))
plot_ly(data, x = ~a, y = ~b, type = "bar")
also:
data <- data.frame(a = factor(character(), levels = c("Entry1", "Entry2")), b = factor(numeric(), levels = c(1:20)))
plot_ly(data, x = ~a, y = ~b, type = "bar")
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
issue に示されている因子レベルを使用して、plot_ly で両方の例を再現し、その後、棒グラフの軸に対して空のデータまたは NA データがどのように処理されるかを追跡します。完成した動作で x 軸に Entry1 と Entry2 のラベルが付き、y 軸の範囲が約 0 から 20 になることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- r
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100