| census_base_layer | R Documentation |
A ggplot2 layer of the state polygons for a census year, drawn as flat
fill. Put it under a district choropleth so the national outline stays whole:
the census enumerates no districts in the territory India claims but does not
administer, so a district layer alone truncates the north by roughly two
degrees of latitude.
census_base_layer(year, fill = "grey80", ...)
year |
Census year whose boundaries to draw. One of 1941, 1951, 1961, 1971, 1981, 1991, 2001, 2011. |
fill |
Fill colour for the base. Defaults to the grey |
... |
Passed to |
plot_map() adds this automatically. Use it directly when hand-rolling a map
with ggplot2::geom_sf().
A ggplot2 layer.
ggplot2::ggplot() +
census_base_layer(2011)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.