[R] blowup portion of graph beside it

Greg Snow Greg.Snow at imail.org
Thu Jan 22 17:58:52 CET 2009


Here is one way:

tmpmat <- cbind( c(1,1), c(1,1), c(2,3) )
layout(tmpmat)

with(iris, plot(Sepal.Width, Sepal.Length, col=c('red','green','blue')[Species]))
with(iris, plot(Sepal.Width, Sepal.Length, col=c('red','green','blue')[Species],
			xlim=c(2.5,3), ylim=c(6,6.5)))
with(iris, plot(Sepal.Width, Sepal.Length, col=c('red','green','blue')[Species],
			xlim=c(2.5,3.5), ylim=c(4.5,5.5)))

If that is not what you want, then give more detail so we can help better.

-- 
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: Thursday, January 22, 2009 9:51 AM
> To: r-help at r-project.org
> Subject: [R] blowup portion of graph beside it
> 
> Hi,
> 
> I'd like to blow up portions of my graph and put it in boxes beside the
> graph.Is there an addon to do this?
> 
> --
> Rajesh.J
> 
> 	[[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