EDIT: I've read through this question but that does not(in my opinion) readily solve the problem. Also considering, it's a bit old; perhaps someone has come up with a hack that does not need one to do more "hacking".
Given some dummy data below:
dummy_df<-data.frame(A=runif(50,0,5),B=runif(50,5,90),Group=c(1,2))
dummy_df %>%
ggplot(aes(A,B))+geom_point()+
facet_grid(.~Group)+
coord_cartesian(xlim=c(1,3))
How could one apply the last call to only a single facet say only facet 1 of this plot?! I would name it something like zoom_at(facet_1)
.
Thanks in advance.