lty
Peter Dalgaard BSA
p.dalgaard@biostat.ku.dk
03 Jun 1998 21:19:00 +0200
Bill Simpson <wsimpson@uwinnipeg.ca> writes:
>
> Sorry, my previous message said using lty="2" made line disappear. Wrong.
>
> What happens is that
> "2" is dots
> "3" is dashes
>
> BUT docs say
> "2" is dashes
> "3" is dots
>
> So there is an error in the docs.
Nope:
lty=1 solid
lty=2 dashed
lty=3 dotted
lty=4 dotdashed
lty="1" pattern: 1 "dot" on, 1 "dot" off
lty="2" pattern: 2 "dots" on, 2 "dots" off
lty="3" pattern: 3 "dots" on, 3 "dots" off
lty="32" pattern: 3 "dots" on, 2 "dots" off
lty="124" pattern: 1 on, 2 off, 4 on, 1 off, 2 on, 4 off,
...and so forth...
You can see this clearly if you start with par(lwd=5). As far as I can
see without actually digging into the source,
2 == "4"
3 == "13"
4 == "3134"
So the docs are OK, but perhaps we need to distinguish more clearly
between integer and character lty's.
The dot-dash pattern on X11 looks wrong, though. I think it should
have been "1343", i.e. same pattern, reverse colors.
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk) FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._