geom_census: Plot census data on ggmap

Description Usage Arguments Value

View source: R/geom_census.R

Description

Plot census data on ggmap

Usage

1
2
3
4
geom_census(survey, year, table_contents, summary_level, states = NULL,
  areas = NULL, N = 100, mapping = NULL, data = NULL, geom = "point",
  position = "identity", na.rm = FALSE, show.legend = NA,
  inherit.aes = TRUE, ...)

Arguments

survey

"decennial" for decennial census, "acs5year" for ACS 5-year estimates, "acs1year" for ACS 1-year estimate

year

year of the survey

table_contents

contents of table to be read

summary_level

select which summary level to keep, "*" to keep all. It takes strings including "state", "county", "county subdivision", "place", "tract", "block group", and "block" for the most common levels. It also take code for level.

states

abbreviation of a state of which data to be read, such as "RI".

areas

areas of which data to be read

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 "point".

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.