[R] Blowing up portions of a graph
Greg Snow
Greg.Snow at imail.org
Mon Oct 13 18:18:35 CEST 2008
There is the zoomplot function in the TeachingDemos package that allows you to zoom in/out the current plot. But it is a bit of a kludge. The better option is probably to just set the xlim and ylim arguments in a new plot command. You can use the locator function as one way to find the coordinates to pass to xlim and ylim.
For adding the zoomed areas, you can use the layout function to set up the device with one big area on top and multiple smaller areas below to place the zooms in, or you can use the subplot function from the TeachingDemos package to add the zooms to uninteresting/empty areas of the current plot.
Hope this helps,
--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org
801.408.8111
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of rajesh j
> Sent: Monday, October 13, 2008 12:35 AM
> To: r-help at r-project.org
> Subject: [R] Blowing up portions of a graph
>
> Hi,
>
> I have a really large graph and would like to zoom in on portions of
> the
> graph and post them as blocks below the graph.Is there an add on
> package to
> do this?
> --
> Rajesh.J
>
> ------------------------------------------------------------
> "I skate to where the puck is going to be, not where it has been." -
> Wayne
> Gretzky
> -------------------------------------------------------------
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.
More information about the R-help
mailing list