[R] xyplot tick marks and line thickness

Karl Ove Hufthammer karloh at mi.uib.no
Fri Aug 25 10:14:39 CEST 2006


Piet Bell skreiv:

> The publisher of our paper has requested:
> 
> 1. all tick marks should point inwards instead of outwards.

Point him to William S. Cleveland’s excellent book /The Elements of Graphing
Data/, where Cleveland strongly recommends that tick marks should point
*outwards* ‘because ticks that point inward can obscure data’. See the
discussion on pages 31–35, and especially figure 2.12 and 2.13.

> 2. All lines should be thicker (lines, axes, boxes, etc. Everything).
> Lines is easy...I used:  lwd=1.5   but what about the lines of the axes,
> and the lines that build up the plot itself?....?

I find that

library(Hmisc)
setps("filename") # Or setpdf. You might also want to add 'color=TRUE'.
... plotting commands ...
dev.off()

usually gives much better-looking plots, and with thicker lines.

-- 
Karl Ove Hufthammer
E-mail and Jabber: karl at huftis.org



More information about the R-help mailing list