plotly / plotly/plotly.R

plotly problem of specifying point symbol within the boxplot

オープン
#1,716 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
R
スター
2.7k
フォーク
641
PR マージ指標
30日以内にマージされた PR はありません

説明

Hi I am trying to specify the point symbol (shape) based on a factor, so that the point shape within the boxplot can be different (which can be very useful for highlighting a group of points). However, it looks like instead of showing different shapes, the third boxplot got split into two boxes.

Can you please advise how to achieve that?


Brief description of the problem

library(dplyr)
data(iris)
iris=mutate(iris, Petal.Width_high=ifelse(Petal.Width>2,"High","Low"))

iris %>% plot_ly(x = ~ Species, y = ~ Petal.Width, color= ~ Species,
                 symbol = ~ Petal.Width_high,
                 type = "box", mode="markers",boxpoints="all",
                 jitter = 0.4, marker = list(size = 10),
                 pointpos = 0,hoverinfo='text',
                 text= ~paste('</br>Species: ', Species,
                              '</br>Petal.Width: ', Petal.Width))

image

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、iris、plot_ly、boxpoints="all"、および Petal.Width_high にマッピングされた symbol を使って、提供された R の例を再現します。symbol のマッピングによって 3 番目の boxplot が分割される理由を調査し、ボックスのグループ化を変更せずに各ボックス内で異なる点のシンボルが描画されれば、issue は完了とします。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
r
領域
data-visualization
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
42/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。