plotly / plotly/plotly.R

Not all facets being shown with facet_wrap, boxplot and ggplotly

Open
#2,032 1 comment 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

@cpsievert I'm seeing several open issues that are similar to this one (#1132, #1962, #1301, #1254, #1243, #1099, #1086, #897) and wasn't sure whether to add a new issue or not.

It seems like perhaps plotly is having some trouble with facet_wrap() -- my reprex is pretty simple. On my machine using the development (and non-development) version of plotly some facets are not being shown.

The images below are from plotly 4.9.4.9000.

library(ggplot2)
p <- ggplot(mtcars, aes(y = mpg)) + geom_boxplot() + facet_wrap(~cyl)
plotly::ggplotly(p)

Just ggplot2 (no plotly)
image

ggplotly (missing a couple of boxes)

image

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 running the R reprex with ggplot2's facet_wrap() and plotly::ggplotly(), then compare the rendered facets with the supplied screenshots. The work is done when ggplotly shows every facet box produced by the original ggplot2 plot.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data-visualization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.