[R] lwd - Windows

Francisco J. Zagmutt gerifalte28 at hotmail.com
Wed Apr 26 16:56:51 CEST 2006

Dear Prof Brian Ripley

Thanks for replying to my question.  I am sorry but it is still not clear to 
me if there is a way to handle an "intermediate" line width.  In my windows 
system when I create a figure with 4 plots par(mfrow=c(2,2),lwd=1) the lines 
look a bit too thin and using lwd=2 makes them look a bit too thick, and if 
I use 1.5 it makes no difference. i.e

plot(sin,lwd=1)#Too thin
plot(sin,lwd=1.5)#Same as lwd=1
plot(sin,lwd=1.99)#Same as lwd=1
plot(sin,lwd=2)#Too thick



>From: Prof Brian Ripley <ripley at stats.ox.ac.uk>
>To: "Francisco J. Zagmutt" <gerifalte28 at hotmail.com>
>CC: R-help at stat.math.ethz.ch
>Subject: Re: [R] lwd - Windows
>Date: Wed, 26 Apr 2006 11:34:05 +0100 (BST)
>On Wed, 26 Apr 2006, Francisco J. Zagmutt wrote:
>>Dear all
>>Is there a way or trick in windows to plot a line width that is not an
>>integer i.e 1.5?
>>I am aware that the documentation for window devices states "Line widths 
>>controlled by par(lwd=) are in multiples of the pixel size, and multiples 
>>1 are silently converted to 1" but I was wondering if there is a 
>That's not what it says in R 2.3.0 (nor in my copy of 2.2.1)!  ?windows 
>      Line widths as controlled by 'par(lwd=)' are in multiples of
>      1/96inch.  Multiples less than 1 are allowed, down to one pixel
>      width.
>>Also, IMHO the documentation for lwd in par may need some clarification
>>since it states:
>>"The line width, a positive number, defaulting to 1. The interpretation is
>>device-specific, and some devices do not implement line widths less than
>>one."  Perhaps it would be useful for the users to describe the behavior 
>>the most important devices, and also to state that the number is an 
>>(at least for windows) and not just a positive number?
>False premise.  Please don't ask for the documentation to be changed to 
>your personal misreading of it.
>Brian D. Ripley,                  ripley at stats.ox.ac.uk
>Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
>University of Oxford,             Tel:  +44 1865 272861 (self)
>1 South Parks Road,                     +44 1865 272866 (PA)
>Oxford OX1 3TG, UK                Fax:  +44 1865 272595

More information about the R-help mailing list