in bar plot bars are in the wrong order
まだ誰も着手していません。
- 主要言語
- R
- スター
- 2.7k
- フォーク
- 641
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Please briefly describe your problem and what output you expect. If you have a question, please don't use this form, but instead ask on the community forum http://community.plot.ly/c/api/r or stackoverflow http://stackoverflow.com.
Please include a minimal reprex. The goal of a reprex is to make it as easy as possible for me to recreate your problem so that I can fix it. If you've never heard of a reprex before, start by reading https://github.com/tidyverse/reprex#readme, and follow the advice further down the page. Do NOT include session info unless it's explicitly asked for, or you've used reprex::reprex(..., si = TRUE) to hide it away.
Delete these instructions once you have read them.
Brief description of the problem
bar named 3 months must follow bar named "ban". currently, it is between 12 and 6 month bar
library(plotly)
fig <- plot_ly()
fig <- fig %>% add_bars(
x = c("12 months", "6 months", "3 months","ban on short term plans" ),
y = c(-200),
base = c(0),
marker = list(
color = 'red'
),
)
fig <- fig %>% add_bars(
x = c("12 months", "6 months", "3 months","ban on short term plans"),
y = c(-76, -61, -44,-121),
base = c(0),
marker = list(
color = 'grey'
),
name = 'decrease in premiums'
)
fig
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
提供された R の例から順序付けの問題を再現し、plot_ly() と add_bars() のエントリポイントから始めます。2 つの棒トレース間でカテゴリカルな x 値がどのように順序付けられているかを確認します。「3 months」の棒が「12 months」と「6 months」の間ではなく、「ban on short term plans」の直前に表示されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- r
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 38/100