Open
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)
Metadata
Metadata
Assignees
Labels
No labels