Re: [R] Dont show zero values in line graph

2011-01-07 Thread Uwe Ligges
On 07.01.2011 04:10, LCOG1 wrote: Hey everyone, Im getting better at plotting my data but cant for the life of me figure out how to show a line graph with missing data that doesnt continue the line down to zero then back up to the remaining values. Consider the following x<-c(1:5,0,0,8:10

Re: [R] Dont show zero values in line graph

2011-01-06 Thread Steven McKinney
ots of useful manipulations in R. Steven McKinney From: r-help-boun...@r-project.org [r-help-boun...@r-project.org] On Behalf Of LCOG1 [jr...@lcog.org] Sent: January 6, 2011 7:10 PM To: r-help@r-project.org Subject: [R] Dont show zero values in line graph Hey everyone, Im getting bet

[R] Dont show zero values in line graph

2011-01-06 Thread LCOG1
Hey everyone, Im getting better at plotting my data but cant for the life of me figure out how to show a line graph with missing data that doesnt continue the line down to zero then back up to the remaining values. Consider the following x<-c(1:5,0,0,8:10) y<-1:10 plot(0,0,xlim=c(0,10), ylim