Skip to content
Prev 38665 / 63424 Next

postscript failure manifests in plot.TukeyHSD

Hi

According to the PostScript Language Reference Manual and the PDF 
Reference, in both PDF and PostScript ...

... a line width of zero is valid, but not recommended (and is clearly 
not supported by some viewers).

... a line dash pattern cannot be specified as all zero lengths.
(So, because R generates the line dash pattern proportional to the line 
width, a specification of lwd=0 and 
lty=anything-other-than-"solid"-or-"none" does not make sense.)

I think three fixes are required:

(i)  Enforce a minimum line width of 0.01 (mainly because that is not 
zero, but also because that is the smallest value greater than zero when 
you round to 2dp like the PDF and PostScript devices do and it's still 
REALLY thin).

(ii) If the line dash pattern ends up as all zeroes (to 2dp), because 
the line width is so small (thin), force the dash pattern to "solid" 
instead.

(iii) plot.TukeyHSD() should not use lwd=0  (0.5 is plenty difference to 
be obviously "lighter" than the main plot lines)

I will commit these unless there are better suggestions or bitter 
objections.

Paul
On 15/12/2010 7:20 a.m., Ben Bolker wrote: