[R] plotting many line segments in different colors
p.dalgaard at biostat.ku.dk
Fri Jul 2 23:44:02 CEST 2004
rif <rif at MIT.EDU> writes:
> I want to plot a large number of line segments, with a color
> associated with each line segment
> Is there a function that does what I want? Right now I'm using the
> obvious solution of calling lines in a loop with a single segment, but
> this is really quite slow for my purposes, as I have several thousand
> lines total to plot.
I don't know how to break this to you, but....
Have you considered segments()?
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
More information about the R-help