Here's a similar variant on what has been proposed, but is simpler. It relies on the fact that plot() doesn't need a ~.
a<-1:100 b<-seq(1,length(a),5) plot(1:20, a[1:b]) Alternately, if you were using a data frame, as long as you knew the column names, you could do something like plot(my.data$x[b], my.data$y[b]) Simple, no? -- View this message in context: http://www.nabble.com/plotting-every-ith-data-point--tp15601953p15620348.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.