t.short@epri-peac.com
2004-Sep-13 20:18 UTC
[Rd] Wishlist: axis() and line widths (PR#7223)
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. 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.
ligges@statistik.uni-dortmund.de
2004-Sep-14 08:36 UTC
[Rd] Wishlist: axis() and line widths (PR#7223)
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
Seemingly Similar Threads
- bitmap() doesn't finish with file in Windows (PR#7224)
- axis and tick widths decoupled (especially in rugs!)
- Wishlist: specify the border color of boxes in legend() (PR#13913)
- slanted ends of horizontal lines for certain line widths
- line widths of plotting symbols in the lattice