[R] plotting every ith data point?

K. Elo maillists at nic.fi
Thu Feb 21 07:51:33 CET 2008


Hi,

sorry, the correct commands should look like this:
> plot(example.df$StartDate[ (row(example.df)%%5)==0 ], example.df$DSR1[ 
(row(example.df)%%5)==0 ], type="p", ylim=c(0.3,0.9))
> points(example.df$StartDate[ (row(example.df)%%5)==0 ], 
example.df$DSR2[ (row(example.df)%%5)==0 ], type="p", pch=3)

(In my previous mail I had the "points" twice)

Kind regards,
Kimmo



More information about the R-help mailing list