Description Usage Arguments Value
View source: R/geom_boundary.R
Draw census boudaries on ggmap
1 2 3 4 |
geography |
geography of which boudaries to be drawn. Currently take "state", "county", "county subdivision", "tract", "block group". |
data_fill |
data frame to fill in the boundaries. It has GEOID as the first column and the values to fill as the second column. |
year |
year of the shape files updated. |
states |
abbreviation of a state within which boudaries are drawn, such as "RI". |
counties |
vector of county names of the state, such as c("providence", "kent") |
N |
integer when state is NULL, N x N grid points on the view of map are used to determine the states and counties within the view. |
mapping |
same as those in ggplot functions, typically inherited from ggmap() |
data |
data typically inherited from ggmap(). |
geom |
same as those in ggplot2 functions but should be uisng "polygon". |
position |
same as those in ggplot2 functions. |
na.rm |
same as those in ggplot2 functions. |
show.legend |
same as those in ggplot2 functions. |
inherit.aes |
same as those in ggplot2 functions. |
... |
same as those in ggplot2 functions. |
a ggplot2 object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.