[R] Giving vector of colors to line in plots
Jim Lemon
jim at bitwrit.com.au
Mon Feb 7 10:37:14 CET 2011
On 02/07/2011 05:15 PM, statmobile wrote:
> Hey all,
>
> I can't for the life of me figure out what I'm missing here. I'm trying
> to change the color of the line in a time series type plot. I can change
> the point colors and symbols no problem, but for some reason the colors
> do not get passed to the lines, regardless of if I do type="b" or
> type="l". The sample code I'm using is below.
>
Hi Brian,
Have a look at the color.scale.lines function (plotrix). This may allow
you to do what you want.
Jim
More information about the R-help
mailing list