Skip to content
Prev 1289 / 63421 Next

lty

Bill Simpson <wsimpson@uwinnipeg.ca> writes:
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.