On 05/04/2012 12:04 AM, Ben Neal wrote:
Jim, thanks for the reply. I tried what you recommend, but I still get an error
when running it, just as I did with the similar loops I was trying. Here is the
error:
Error in xy.coords(x, y) : 'x' and 'y' lengths differ
That comes from this code:
#Get
roject.org
Subject: Re: [R] Simple plot loop
Ben,
I think that your original for-loop would work if you just
replaced the 'i' in the lines() call with 'Data2[,i]':
for (i in 2:length(Data2)) {
lines(MONTH, Data2[, i], type="o", pch=22, lty=2, col="blue&qu
-help-boun...@r-project.org on behalf of Jim Lemon
Sent: Thu 5/3/2012 3:40 AM
To: Ben Neal
Cc: r-help@r-project.org
Subject: Re: [R] Simple plot loop
On 05/03/2012 05:50 PM, Ben Neal wrote:
Trying to plot multiple lines from a simple matrix with headers (eight
observations per column). I will be doing
t.org on behalf of Jim Lemon
Sent: Thu 5/3/2012 3:40 AM
To: Ben Neal
Cc: r-help@r-project.org
Subject: Re: [R] Simple plot loop
On 05/03/2012 05:50 PM, Ben Neal wrote:
> Trying to plot multiple lines from a simple matrix with headers (eight
> observations per column). I will be doing a number o
On 05/03/2012 05:50 PM, Ben Neal wrote:
Trying to plot multiple lines from a simple matrix with headers (eight
observations per column). I will be doing a number of these, with varying
numbers of columns, and do not want to enter the header names for each one (I
got frustrated and just wrote t
5 matches
Mail list logo