[R-sig-Geo] Line width in sp maps
    Vladimir Batagelj 
    vladimir.batagelj at fmf.uni-lj.si
       
    Wed Jul  5 06:29:10 CEST 2006
    
    
  
<<<-------- Roger Bivand-------->>>
> both for base graphics. Are you using spplot()?
Yes.
I am trying to get a display of administrative units in the world
> rc <- readShapePoly("admin98/admin98.shp")
> names(rc)
 [1] "FIPS_ADMIN" "GMI_ADMIN"  "ADMIN_NAME" "FIPS_CNTRY" "GMI_CNTRY" 
"CNTRY_NAME" "REGION"     "CONTINENT"
 [9] "POP_ADMIN"  "SQKM_ADMIN" "SQMI_ADMIN" "TYPE_ENG"   "TYPE_LOC"  
"COLOR_MAP"
> length(rc$ADMIN_NAME)
[1] 2604
> rc$f = factor(sample(1:10, 2604, replace = T), labels = letters[1:10])
> spplot(rc, "f", col.regions=brewer.pal(10, "Set3"), scales=list(draw =
TRUE))
I get the complete picture but with thick lines.
I tried in different ways to set the lwd parameter to spplot:
> spplot(rc, "f", col.regions=brewer.pal(10, "Set3"), scales=list(draw =
TRUE),lwd=0.01)
> trellis.par.set(list(plot.line=list(lwd=0.01)))
> spplot(rc, "f", col.regions=brewer.pal(10, "Set3"), scales=list(draw =
TRUE))
> spplot(rc, "f", col.regions=brewer.pal(10, "Set3"), scales=list(draw =
TRUE),
+ par.settings=list(plot.line=list(lwd=0.01)))
> spplot(rc, "f", col.regions=brewer.pal(10, "Set3"), scales=list(draw =
TRUE),
+ par.settings=list(plot.polygon=list(lwd=0.01)))
I couldn't obtain thin lines.
Vlado
-- 
Vladimir Batagelj, University of Ljubljana, Department of Mathematics
  Jadranska 19, PO Box 2964, 1111 Ljubljana, Slovenia
http://vlado.fmf.uni-lj.si
    
    
More information about the R-sig-Geo
mailing list