[R] lwd - Windows

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Apr 26 12:34:05 CEST 2006

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 as
> 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 workaround
> this.

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

> 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 for
> the most important devices, and also to state that the number is an integer
> (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