[R] Plotting continuous line types w/large datasets

Richard Liston liston at cc.gatech.edu
Tue Nov 26 15:35:59 CET 2002


> p.dalgaard at biostat.ku.dk (Peter Dalgaard BSA) writes:
> liston at cc.gatech.edu (Richard Liston) writes:
> 
> > ... So my question is: is there a
> > call I can make to plot a large dataset where the specified line type
> > gets "continued" through all the points? Or perhaps someone can suggest
> > a workaround.
> 
> Changing the colour might work better.
> ...

I didn't mention that different colors is not an option. But actually
on more investigation it appears that I'm wrong about whether the line
type is continued through the line. what I needed to do was to specify
the lty as something like "F7" (which I was already doing) and also set
lwd higher since the units in the lty are proportional to lwd:

x <- seq(1,100000,1)
plot(x,x,lty="F7",type="l",lwd=2)

So modifying plot.stepfun() so that it uses lines() instead of segments()
and then using the above parameters will work.

Thanks,
Richard

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list