Skip to content
Prev 202081 / 398506 Next

Assign palette (e.g. rainbow) to a series of points on 1 plot

On Nov 29, 2009, at 9:30 PM, Frostygoat wrote:

            
You have vectors of unequal length which may cause some problems. Have  
you thought of using plot with xlim and ylim and just one series and  
then following that with something like:

 > mapply(lines, days, lxs, MoreArgs=list(col=rainbow(3), type="b"))

It seemed to give somewhat sensible results using the series tha tyou  
offered even without the pre-determined x limits.