Re: [R] lwd - Windows
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 says 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 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, [EMAIL PROTECTED] 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, UKFax: +44 1865 272595 __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] lwd - Windows
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 par(mfrow=c(2,2)) 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 Regards Francisco From: Prof Brian Ripley [EMAIL PROTECTED] To: Francisco J. Zagmutt [EMAIL PROTECTED] CC: R-help@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 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 says 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 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, [EMAIL PROTECTED] 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, UKFax: +44 1865 272595 __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] lwd - Windows
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. 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? version platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status major2 minor2.1 year 2005 month12 day 20 svn rev 36812 language R Thanks Francisco __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html