plot_density_facet | R Documentation |
Plot fact graph with city maps and density patterns
plot_density_facet(
cities,
bks = c(4, 10, 25, 50, 100, 200, 500, 1000),
radius_km = 40,
years = c("1975", "1990", "2000", "2015"),
remove_lowest = TRUE,
lowest_color = NULL
)
cities |
list of cities of class 'sf' point geometries and 'name' field |
bks |
break points for poopulation densities |
years |
list of years, valid values are '1975', '1990', '2000', '2015' |
remove_lowest |
logical, remove population below the lowest density breakpoint |
lowest_color |
colour for lowest poulation density bracket if not removed |
max_radius_km |
radius to compute the densities |
a ggplot2 object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.