From ligges at statistik.uni-dortmund.de  Tue Sep 14 08:36:24 2004
From: ligges at statistik.uni-dortmund.de (ligges@statistik.uni-dortmund.de)
Date: Tue Sep 14 08:36:27 2004
Subject: [Rd] Wishlist: axis() and line widths (PR#7223)
Message-ID: <20040914063624.E6E8511392@slim.kubism.ku.dk>

t.short@epri-peac.com wrote:

> Full_Name: Tom Short
> Version: 1.9.1
> OS: Win2000 & Debian
> Submission from: (NULL) (64.65.255.41)
> 
> 
> WISHLIST:
> 
> 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.

Looks like you are confusing lty and lwd???

Anyway, both lty and lwd work fine:

  plot(1:10)
  axis(1, lty=2, col="red")
  axis(2, lwd=2)


> 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)) 

For sure you mean

par(lwd=0.5)
plot(1:3)

But that won't work on arbitrary devices (AFAIR), because 0.5 is smaller 
than 1 - and it's hard to draw things that are smaller than one point.


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


No. If you want to change line widths of stuff within your plot, you 
don't want to change it for your axes as well.


Uwe Ligges


> ______________________________________________
> R-devel@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] Wishlist: axis() and line widths (PR#7223)
ligges@statistik.uni-dortmund.de