Re: [R] plotting lines with missing data for x values

2009-01-30 Thread Duncan Murdoch
Gareth Campbell wrote: I have some data (REE plots - geochemistry) where I have values 1:14 for the x axis, but have no data for some x values. Here for example, let's say that I don't have data for x=2,5,8. So x-1:14 y-c(4, NA, 5, 9, NA, 3.4, 8, NA, 19, 22, 12, 14, 15.3, 15) if I plot the

[R] plotting lines with missing data for x values

2009-01-29 Thread Gareth Campbell
I have some data (REE plots - geochemistry) where I have values 1:14 for the x axis, but have no data for some x values. Here for example, let's say that I don't have data for x=2,5,8. So x-1:14 y-c(4, NA, 5, 9, NA, 3.4, 8, NA, 19, 22, 12, 14, 15.3, 15) if I plot the data plot(x,y) and then