`ggplot2::geom_rect` not passed to in `ggplotly`
Open
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 2.7k
- Forks
- 641
- PR merge metrics
- No merged PRs in 30d
Description
ggplot2::geom_rect isn't used in ggplotly:
library(dplyr)
library(ggplot2)
library(plotly)
g <- ggplot(starwars,
aes(x = height, y = mass)) +
geom_rect(data = starwars |> filter(sex == "male"),
aes(fill = sex), xmin = -Inf, xmax = Inf,
ymin = -Inf, ymax = Inf, alpha = 0.3) +
geom_point(shape = 1) +
facet_grid(sex ~ gender)
g
ggplotly(g)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the supplied R example with ggplot2 and plotly, then trace the ggplotly() conversion path for geom_rect and facet_grid. Done means the geom_rect layer is represented correctly in the resulting interactive plot, including the shown filtered data and facets.
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