[R-sig-Geo] plot.polylist polygon plot order
    Sutherland, Robert D (DFG) 
    robert.sutherland at alaska.gov
       
    Wed Jul 18 19:56:32 CEST 2007
    
    
  
Hi Jeff,
This is what I did.
HistBreaks<-quantile(datafileDf$nhunters,probs=c(0.1,0.2,
0.4,0.6,0.8,0.9,1.0),na.rm=TRUE)
np<-findInterval(datafileDf$nhunters, histBreaks, all.inside=TRUE)
colorsToUse<-colorSchemeV5
plot.polylist(datafilePolys, col=colorsToUse[np],  forcefill=FALSE)
plot.polylist(datafilePolys,  density = c(-1,20,20,-1,-1,-1,-1)[np],
angle=c(0,0,90,0,0,0,0)[np], forcefill=FALSE,add=TRUE)
the first plot.polylist plots the outline of the polygon, the second
call "colors" the polygon.
I hope this helps.
Bob
-----Original Message-----
From: r-sig-geo-bounces at stat.math.ethz.ch
[mailto:r-sig-geo-bounces at stat.math.ethz.ch] On Behalf Of Jeff Jorgensen
Sent: Wednesday, July 18, 2007 9:30 AM
To: r-sig-geo at stat.math.ethz.ch
Subject: [R-sig-Geo] plot.polylist polygon plot order
Hello,
I've imported a shapefile of polygons (R v2.5.1 winxp, maptools v0.6-13)
and I'm trying to assign colors to polygons in plot.polylist().  Is 
there a way to force the order in which polygons are plotted get the 
correct color associations to the corresponding polygons?
Best regards,
Jeff
-- 
Jeff Jorgensen
Northwest Fisheries Science Center
National Marine Fisheries Service
NOAA Fisheries
2725 Montlake Blvd. E.
Seattle, WA  98112
jeff.jorgensen at noaa.gov
ph:   206.860.3286
FAX:  206.860.3400
_______________________________________________
R-sig-Geo mailing list
R-sig-Geo at stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
    
    
More information about the R-sig-Geo
mailing list