plotly / plotly/plotly.R

Boxplot doesn't show up side-by-side

Open
#1,591 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
R
Stars
2.7k
Forks
641
PR merge metrics
No merged PRs in 30d

Description

I'm very confused, because this doesn't seem to be a problem other users here are having. But in any case, I'm trying to create side-by-side boxplots with the following code; it does what I want on ggplot but not when wrapping with ggplotly.

ggplot(density_tidy,aes(x=cluster, y=dem_margin)) +
  geom_boxplot(aes(colour=region), fill=NA, alpha=0.5)

スクリーンショット 2019-08-06 午後1 40 04
スクリーンショット 2019-08-06 午後1 40 27

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the supplied ggplot and ggplotly versions of the boxplot using the shown aesthetics. Compare the rendered grouping and positioning, then trace the ggplotly conversion path involved in geom_boxplot. Done means the ggplotly result shows the regional boxplots side-by-side as the original ggplot does.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.