Re: [R] Line graphs with NA

2008-12-28 Thread Gabor Grothendieck
Try this. na.approx fills in missing values. See ?na.approx, ?approx and ?plot.zoo and the three zoo vignettes. Lines <- 'Subject: 1 2 3 4 "1"NA3 2 NA "2"4NANA 4 "3"66.5 6 5.5 "4"7NA N

[R] Line graphs with NA

2008-12-28 Thread Chris Poliquin
Hi, I have sets of three points provided by subjects that I want to graph as lines over a specific range, but the subjects were split into two groups and provided different points. The subjects provided a y-value for the given x-value, for example: Subject: 1 2 3 4