Maybe what I am missing is how to set the device region mentioned
in Brian's email. I have tried various searches, but I haven't had
any luck in finding a reference to device region. However, I'm not
sure that changing the device region will help if one stays with plot
(), because the
Since posting the message immediately below, I took Brian's reference
to Introduction to R more seriously, and read through the section
on graphics. There I found par(fig=c(xleft,xright,ybottom,ytop)).
This seems to be setting the device region which Brian pointed out
is a fundamental part
DE == David Epstein [EMAIL PROTECTED]
on Mon, 21 Jul 2008 09:42:35 +0100 writes:
DE Maybe what I am missing is how to set the device
DE region mentioned in Brian's email.
Play around resizing your graphics window..
This is very instructive, with an 'asp = .' using traditional
A really great answer to my concerns! I'll get hold of the Paul
Murrell book, and see how far I can get.
On 21 Jul, 2008, at 10:48, Martin Maechler wrote:
Play around resizing your graphics window..
This is very instructive, with an 'asp = .' using traditional
graphics plot().
OK, but I
DE == David Epstein [EMAIL PROTECTED]
on Mon, 21 Jul 2008 14:32:47 +0100 writes:
DE A really great answer to my concerns! I'll get hold of the Paul
DE Murrell book, and see how far I can get.
DE On 21 Jul, 2008, at 10:48, Martin Maechler wrote:
Play around resizing your
-project.org
Subject: [R] asp and ylim
#See David Williams' book Weighing the odds, p286
y - c(1.21, 0.51, 0.14, 1.62, -0.8,
0.72, -1.71, 0.84, 0.02, -0.12) ybar - mean(y)
ylength - length(y) ybarv - rep(ybar, ylength) x - 1:ylength
plot(x,y,asp=1,xlab=position,ylab=ybar,type=n,ylim=c
#See David Williams' book Weighing the odds, p286
y - c(1.21, 0.51, 0.14, 1.62, -0.8,
0.72, -1.71, 0.84, 0.02, -0.12)
ybar - mean(y)
ylength - length(y)
ybarv - rep(ybar, ylength)
x - 1:ylength
plot(x,y,asp=1,xlab=position,ylab=ybar,type=n,ylim=c(-1,1))
segments(x[1], ybar, x[ylength],
On 21/07/2008, at 5:27 AM, David Epstein wrote:
#See David Williams' book Weighing the odds, p286
y - c(1.21, 0.51, 0.14, 1.62, -0.8,
0.72, -1.71, 0.84, 0.02, -0.12)
ybar - mean(y)
ylength - length(y)
ybarv - rep(ybar, ylength)
x - 1:ylength
Try lattice:
library(lattice)
xyplot(y ~ x, ylim = c(0.5, 0.7), aspect = iso)
On Sun, Jul 20, 2008 at 5:58 PM, David Epstein
[EMAIL PROTECTED] wrote:
On 20 Jul, 2008, at 22:00, Rolf Turner wrote:
I just tried
set.seed(42)
x - runif(10)
y - runif(10)
Take a look at eqscplot() in package MASS for a different approach.
You last para forgets that once you have set the device region and the
margins the physical plot region and hence its aspect ratio is determined
-- see the figures in 'An Introduction to R'.
On Sun, 20 Jul 2008, David
On Sun, Jul 20, 2008 at 11:14 PM, Gabor Grothendieck
[EMAIL PROTECTED] 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
11 matches
Mail list logo