plotly problem of specifying point symbol within the boxplot
未关闭
还没有人认领这个 Issue。
- 主要语言
- 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))

贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先,使用 iris、plot_ly、boxpoints="all" 以及映射到 Petal.Width_high 的 symbol 重现所提供的 R 示例。调查 symbol 映射为何会拆分第三个箱线图,并在每个箱中渲染不同的点符号且不改变箱的分组后,认为该 issue 已完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- r
- 领域
- data-visualization
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100