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
[EMAIL PROTECTED]
801.408.8111


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> project.org] On Behalf Of rajesh j
> Sent: Monday, October 13, 2008 12:35 AM
> To: r-help@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@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.

______________________________________________
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.

Reply via email to