[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

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 1NA3 2 NA 24NANA 4 366.5 6 5.5 47NA NA7 5