How to add abline to facet_zoom plot if I want to see it both on original and zoomed parts?
Currently I get this error:
ggplot(iris, aes(Petal.Length, Petal.Width, colour = Species)) +
geom_point() + facet_zoom(x = Species == "versicolor") +
geom_abline(slope =0.3)
Error in data.frame(..., check.names = FALSE) :
arguments imply differing number of rows: 0, 1
How to add abline to facet_zoom plot if I want to see it both on original and zoomed parts?
Currently I get this error:
Error in data.frame(..., check.names = FALSE) :
arguments imply differing number of rows: 0, 1