[R] Symbols in graph
Jim Lemon
jim at mail.bitwrit.com.au
Wed Jan 4 23:01:10 CET 2012
> Hi,
>
> Is there an easy way to add symbols to a line in a scatter plot, so that
> only a few symbols are added per line (a line drawn based on a large set
> of
> data points) , in order to distinguish several lines in one graph (not a
> symbol for each data point as is the default in plot()).
>
Hi Yvonne,
You can use the "points" function to plot every 10th point (or other
sequence).
points(x[seq(1,length(x),by=10)],y[seq(1,length(y),by=10)],...)
Jim
More information about the R-help
mailing list