[R] lwd less than 1

Uwe Ligges ligges at statistik.uni-dortmund.de
Thu May 19 08:28:56 CEST 2005


Jacques VESLOT wrote:
> Hi,
> 
> Thank you for helping,
> 
> Actually, lwd=.5 in plot() or par() brings neither error nor warning 
> message, but lwd below 1 seems not to be taken into account, as 
> plot(..., lwd=1) and plot(..., lwd=.5) look quite the same.
> 
> Besides, it is mentioned in the lwd section of the par() help page :
> " (...) some devices do not implement line widths less than one".
> 
> What I am looking for is how to get readable plots (with not too wide 
> lines) after size reduction...


What about saving the big plot in a vector format such as PostScript or 
PDF and later resizing in the document you are going to include the plot in?

Uwe Ligges

> Best regards,
> 
> Jacques VESLOT
> 
> 
> Paul Murrell a écrit :
> 
>> Hi
>>
>>
>> Jacques VESLOT wrote:
>>
>>> Dear R-users,
>>>
>>> Someone, who uses R under Mac, wants to insert a couple of small 
>>> plots (each with several lines) in an article, but he has to reduce 
>>> plots' size significantly. He did it (in pdf or enc. ps) but, 
>>> unfortunately, everything is reduced but lines' width. Besides, 'lwd' 
>>> argument in par() or plot() can't be less than one.
>>
>>
>>
>>
>> IANAMU (I am not a Mac user) either, but you should definitely be able 
>> to set lwd to less than 1.   What happens when you try par(lwd=.5) or 
>> plot(1:10, type="l", lwd=.5)?
>>
>> Paul
>>
>>
>>> I am not a Mac user and I don't know whether it is a Mac-related 
>>> problem or not.
>>>
>>> Could somebody please give me a way to solve this problem, either to 
>>> reduce line width under R, or to get reduced lines' width when 
>>> reducing plot size ?
>>>
>>> Thanks,
>>>
>>> Jacques VESLOT
>>> Cirad
>>>
>>> ______________________________________________
>>> R-help at 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-help at 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




More information about the R-help mailing list