clipper: A clip function to create an outliner for national or state...

Usage Arguments

View source: R/clipper.r

Usage

1
clipper(geoobj, state, margin = 0.1)

Arguments

geoobj

A geo-object,

state

a state abbrebriation, e.g. "CA",

margin

margin added to maps,

\item

yNameyName 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)


kevinlzheng/statemaps documentation built on May 20, 2019, 1:56 p.m.