[R-sig-Geo] linewidth of polygon

Michael Sumner mdsumner at utas.edu.au
Fri Sep 9 12:59:18 CEST 2005


Hello,

>My at hoc solution is to edit output eps file with emacs, and change
>the value of linewidth directory.  It is, however, troublesome job.
>
>  
>
You might try this (here lwd is being passed to lower level plot functions)

pl <- read.shape("pl.shp")      

plot(pl, lwd = 0.5)

However ?par reveals
...
     'lwd' 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.

and I certainly don't see a difference with either postscript() or pdf() 
- Windows XP. 

I don't know enough about the various devices - eps() etc. -  to know if 
this is likely to be helpful.

>It is very nice if we can assign the value of linewidth when we use
>plot.Map.  Or even option to remove boundary itself.
>  
>

This will plot no boundary at all ("ol" is an argument of plot.Map):

plot(pl, ol = NA)

I hope that helps.

Cheers, Mike.




More information about the R-sig-Geo mailing list