[R-sig-Geo] help with county map fill type

David Maxwell (Cefas) david.maxwell at cefas.co.uk
Mon Nov 10 16:15:02 CET 2008


Michael
adding fill = TRUE  (so that polygon is used) works for me.
David

David Maxwell
Cefas	
Lowestoft Laboratory		
Suffolk				
NR33 OHT			   
UK
 
www.cefas.co.uk


-----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 Michael Denslow
Sent: 10 November 2008 14:23
To: r-sig-geo at stat.math.ethz.ch
Subject: [R-sig-Geo] help with county map fill type



Dear List,

I am attempting to generate some county level species distribution maps for a publication. The idea is to show three different categories on one map; one for species A, one for species B and one for a county that has both.
Ideally I think some sort of hatching or pattern would be best. I am afraid that my grey scale example will not show up well in print.
In ?map, it says '... Extra arguments passed to polygon or lines'. However if I use the density or angle arguments, it doesn't work.
I am afraid that I am missing something obvious here, please help.

Thanks
Michael

library(maps)
data(stateMapEnv)

map('county', 'north carolina', 
	boundary = TRUE,
	lty = 1)

map('county', region = c('North Carolina,Watauga'), 
	fill = TRUE, col = 'grey80', add = TRUE)

map('county', region = c('North Carolina,Avery'), 
	fill = TRUE, col = 'grey50', add = TRUE)

map('county', region = c('North Carolina,Ashe'), 
	fill = TRUE, col = 'black', add = TRUE)

## try to use density and angle
map('county', region = c('North Carolina,Wilkes'), 
	density = 20,angle = 90, col = 'black', add = TRUE)


Michael Denslow

I.W. Carpenter Jr. Herbarium [BOON]
Appalachian State University
Boone, North Carolina U.S.A.

-- AND --

Communications Manager
Southeastern Regional Network of Expertise and Collections
sernec.org

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo at stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-geo


***********************************************************************************
This email and any attachments are intended for the name...{{dropped:10}}




More information about the R-sig-Geo mailing list