Frost Andy <andy.frost2 <at> ntlworld.com> writes: > I wonder whether you might be able to help me. I have a plot composed of > ggplot (and a follow on geom_smooth call). I would like to restrict the > display range of the y axis to a smaller range, a sort of zooming onto a > region. I attempted to use ylim, but it will effect the range (i.e. effect > the geom_smooth call). Is there any way that I can save the results up to > geom_smooth call and then restrict the print region. See the example code > below. >
?coord_cartesian There is an active google group for ggplot <http://groups.google.com/group/ggplot2> that is probably better than R-help for ggplot-specific questions. Ben Bolker ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.