[Rd] Wishlist: axis() and line widths (PR#7223)

t.short at epri-peac.com t.short at epri-peac.com
Mon Sep 13 20:18:25 CEST 2004

Full_Name: Tom Short
Version: 1.9.1
OS: Win2000 & Debian
Submission from: (NULL) (


axis() has a default parameter of "lwd = 1". I want skinnier lines as the
default. If I change the default lty, it doesn't change what axis uses.

The following code produces a graph with a box around it, but the axis lines are
twice as thick as the box around the plot, so it looks funny. I can manually add
axes and explicitly set line widths, but that's a pain. The box() function does
not set lty, so it uses the default par()$lwd.

> par(lty = 0.5)
> plot(c(1,2,3)) 

RECOMMENDATION: In axis(), change the default for "lwd" from 1 to par()$lwd.

More information about the R-devel mailing list