Re: [R] lines.formula with subset

2008-11-13 Thread Steven McKinney
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > On Behalf Of John Field > Sent: Thursday, November 13, 2008 4:41 PM > To: r-help@r-project.org > Subject: [R] lines.formula with subset > > Dear list, > > When I try to use

[R] lines.formula with subset

2008-11-13 Thread John Field
Dear list, When I try to use lines.formula with subset and another argument I get an error. e.g. x<-1:5 y<-c(1,3,NA,2,5) plot(y~x, type="n") # set up frame lines(y~x, subset=!is.na(y)) # works OK lines(y~x, type="o", col="blue") # works OK # but lines(y~x, subset=!is.na(y), col="red") # gi