I want to fill the zoomed panel to match the default grey of facet_zoom in ggforce.
ggplot(iris, aes(Petal.Length, Petal.Width, colour = Species)) +
geom_point() +
facet_zoom(x = Species == 'versicolor') +
theme_bw()
I want the zoomed panel also to have the grey background. Any thoughts?
I didn't want to modify
facet_zoomand I was hoping someone might know of an elegant way to modify the color of the zoom panels like withzoom.x = element_rect(fill = "grey", color = NA), zoom.y = element_rect(fill = "grey", color = NA)withintheme, but those only address the zoomed section of the un-zoomed panel and the callout to the zoomed panel. I do have a more brute force way to do it usingannotate:The challenge to to find the boundaries of the x and/or y axis when they're not explicit in
facet_zoom. I had to hunt and peck to get them to align.