[R] drawing on axes

Lorenz.Gygax@fat.admin.ch Lorenz.Gygax at fat.admin.ch
Tue Sep 14 07:42:22 CEST 2004


> I would like to make certain portions of axis lines thicker (as Tufte
> suggests).  How can I draw on axes?  I only need a couple of line
> segments on the left and bottom one.

How about:

plot (1, 1, xlim= c (-10, 10), bty= 'n')
axis (1, at= c (-10, -5), labels= FALSE, tick= T, lwd= 5, tck= 0)
axis (1, at= c (0, 3), labels= FALSE, tick= T, lwd= 5, tck= 0)
axis (2, at= c (0.8, 1), labels= FALSE, tick= T, lwd= 5, tck= 0)

Cheers, Lorenz
- 
Lorenz Gygax
Tel: +41 (0)52 368 33 84 / lorenz.gygax at fat.admin.ch      
Centre for proper housing of ruminants and pigs
Swiss Federal Veterinary Office




More information about the R-help mailing list