[R] Making a line in a legend shorter

Jim Lemon jim at bitwrit.com.au
Mon Nov 22 12:00:43 CET 2010


On 11/22/2010 01:38 PM, Luis Felipe Parra wrote:
> Hello, I am putting a legend with lines in a line plot and I would like to
> make the lines in the legend shorter. Does anybody knows how to do this?
>
Hi Felipe,
The only rather clunky way I can think of is to use pch="-" instead of 
lty or lwd. There are longer dashes in most character sets to give you a 
bit of control.

Jim



More information about the R-help mailing list