I am trying to zoom into multiple sections within a plot.
I know that with facet_zoom
I can zoom into a section of the plot. For example:
ggplot(iris, aes(Petal.Length, Petal.Width, colour = Species)) +
geom_point() +
facet_zoom(x = Species == "versicolor")
I would however like to zoom into more then 1 area within the same plot. Is this possible?
I tried:
ggplot(iris, aes(Petal.Length, Petal.Width, colour = Species)) +
geom_point() +
facet_zoom(x = Species == "setosa"|Species == "virginica")
but this doesn't work because selection includes the whole range.
In this simple example I would ideally have two zoomed plots below each other for the two different species.