geom_boundary: Draw census boudaries on ggmap

Description Usage Arguments Value

View source: R/geom_boundary.R

Description

Draw census boudaries on ggmap

Usage

1
2
3
4
geom_boundary(geography, data_fill = NULL, year = 2016, states = NULL,
  counties = NULL, N = 100, mapping = NULL, data = NULL,
  geom = "polygon", position = "identity", na.rm = FALSE,
  show.legend = NA, inherit.aes = TRUE, ...)

Arguments

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.

Value

a ggplot2 object


GL-Li/ggtiger documentation built on Aug. 4, 2020, 6:32 p.m.