Skip to content
Back to formatted view

Raw Message

Message-ID: <200211261435.gAQEZxj09055@gaia.cc.gatech.edu>
Date: 2002-11-26T14:35:59Z
From: Richard Liston
Subject: Plotting continuous line types w/large datasets
In-Reply-To: <x2adjxfm7w.fsf@biostat.ku.dk> from "Peter Dalgaard BSA" at Nov 25, 2002 09:06:27 PM

> 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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._