1 |
geoobj |
A geo-object, |
state |
a state abbrebriation, e.g. "CA", |
margin |
margin added to maps, \itemyNameyName for making equation labels |
This function performed basic clip function to geoobj and add a polygon outside line clip1 <- clipper(geoobj = us.states, state = unique(us.states$STATE_ABBR)) # USA map with projection plot(clip1,col = "red", border ="black", xpd =F) clip2 <- clipper(geoobj = us.states, state = "CA") # CA map with nhd2 projection plot(clip2, col ="blue") clip3 <- clipper(geoobj = us.counties, state = as.vector(unique(us.counties$STATE_ABBR))) # USA map with projection plot(clip3,col = "red", border ="black", xpd =F)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.