Re: [R] asp and ylim

From: Paul Smith <phhs80_at_gmail.com>
Date: Sun, 20 Jul 2008 23:23:21 +0100

On Sun, Jul 20, 2008 at 11:14 PM, Gabor Grothendieck <ggrothendieck_at_gmail.com> wrote:
> Try lattice:
>
> library(lattice)
> xyplot(y ~ x, ylim = c(0.5, 0.7), aspect = "iso")

Alternatively,

set.seed(42)
x <- runif(10)
y <- runif(10)
plot(x[(y>=0.5) & (y<=0.7)],y[(y>=0.5) & (y<=0.7)],ylim=c(0.5,0.7),asp=1)

Paul



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. Received on Sun 20 Jul 2008 - 22:26:17 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 20 Jul 2008 - 22:31:49 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive