milton: that was totally your solution. i just changed it for what
hippie dream wanted. hippie dream: you can do ?text to get a better
explanation but
the basic idea is that the first two parameters in text specify the
coordinates at which you put the text and the third param is the text.
so
Actually Ted,
Mark's code worked perfectly although I am not really sure why. I am fairly
confused by Ted'scode anyways, even though I'm sure it is right. Here is
what it amounted to for my case:
plot(Length ~ Width, data=infiltration1, col="blue", xlab = "Width (cm)",
ylab = "Length (m)", xlim=
I think what he is trying to do is more on the following lines:
D<-NULL; for(i in (1:5)){D<-cbind(D,2.5*i+(0:10)+ 0.5*rnorm(11))}
{plot((0:10),D[,1],pch=49,col="blue",ylim=c(0,25))}
for(i in (2:5)){points((0:10),D[,i],pch=(48+i),col="blue")}
Ted.
On 06-Jul-08 22:47:49, milton ruser wrote:
> Hi H
Thanks Mark Leeds!
Just putting something more on the code:
x<-runif(20)
y<-rnorm(20)
code.level<-sample(1:15,20, replace=T)
df<-data.frame(cbind(x,y, code.level))
plot(y~x, data=df, type="n")
text(df$x, df$y, df$code.level)
Peace,
Miltinho Astronauta
Brazil
On 7/6/08, [EMAIL PROTECTED] <[EM
below is milton's example with the text command changed to be the values
of y itself ? is that what you wanted ?
x<-runif(20)
y<-rnorm(20)
df<-data.frame(cbind(x,y))
plot(y~x, data=df, type="n")
text(df$x, df$y, df$y)
On Sun, Jul 6, 2008 at 6:59 PM, hippie dream wrote:
Thanks Milton,
I
Thanks Milton,
I am finding this a little hard to explain. The code you gave me produced
all 0.0 points whereas what I am looking for are the points to correspond to
a specific column. I'll be explicit. I am graphing the location of 15
objects numbered 1 to 15.
plot(Length ~ Width, data=infiltra
Hi Hippien Dream
If I understood, the code below may help you.
Cheers,
Miltinho Astronauta
Brazil
===
x<-runif(20)
y<-rnorm(20)
df<-data.frame(cbind(x,y))
par(mfrow=c(1,2))
plot(y~x, data=df)
plot(y~x, data=df, type="n")
text(df$x, df$y, "o.o")
On 7/6/08, hippie dream <[EMAIL PROTECT
7 matches
Mail list logo