plot
Thank you first. Now there is no straight line in the plot. when i using: aa <- C1[append(1:16,NA,after=8),] plot(aa,type="l") But if C1 is a more than 16 ( time v.s. X1 ) list. for example: 64 (time v.s. X1) aa <- C1[append(1:64,NA,after=8),] just let one line disappear, others still appear what should I do ? thank in advance!! 2005/12/9, Robin Hankin <r.hankin at noc.soton.ac.uk>:
Hi insert a line of NAs into your data and the line won't cross it:
> a <- cbind(1:10,10:1) > aa <- a[append(1:10,NA,after=4),] > plot(aa,type="b") >
HTH rksh On 9 Dec 2005, at 11:48, Rhett Eckstein wrote:
Dear R users:
C1
time X1 1 0.5 6.296625 2 1.0 10.283977 3 1.5 12.718610 4 2.0 14.112740 5 3.0 15.053917 6 4.0 14.739725 7 6.0 12.912230 8 8.0 10.893264 9 0.5 6.289166 10 1.0 10.251247 11 1.5 12.651346 12 2.0 14.006958 13 3.0 14.870618 14 4.0 14.487026 15 6.0 12.555566 16 8.0 10.474695
plot(C1,type="l")
In the plot, there is a straight line between time=0.5 and time=8, If I do not want the straight line, what should I do? Thanks for any help!!
______________________________________________ R-help at stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting- guide.html
-- Robin Hankin Uncertainty Analyst National Oceanography Centre, Southampton European Way, Southampton SO14 3ZH, UK tel 023-8059-7743