vignettes/pop_urban_city.Rmd
pop_urban_city.Rmd
The visualization of the population of an urban city is carried out in two steps, in the first step the population of the urban locality is extracted and in the second step it is visualized.
a <- ggplot2::ggplot() +
ggplot2::geom_sf(data = x,
ggplot2::aes(fill = population),
col = "white",
lwd = 0.01) +
ggplot2::scale_fill_viridis_c("Population") +
cowplot::theme_map() +
ggspatial::annotation_scale(style = "ticks")
b <- ggplot2::ggplot() +
ggplot2::geom_sf(data = x,
ggplot2::aes(fill = population),
col = "white",
lwd = 0.01) +
ggplot2::scale_fill_viridis_c("Population") +
cowplot::theme_map() +
ggspatial::annotation_scale(style = "ticks")
library(patchwork)
a | b
a <- ggplot2::ggplot() +
ggplot2::geom_sf(data = x,
ggplot2::aes(fill = population),
col = "white",
lwd = 0.01) +
ggplot2::scale_fill_viridis_c("Population") +
cowplot::theme_map() +
ggspatial::annotation_scale(style = "ticks", location = "br")
b <- ggplot2::ggplot() +
ggplot2::geom_sf(data = x,
ggplot2::aes(fill = population),
col = "white",
lwd = 0.01) +
ggplot2::scale_fill_viridis_c("Population") +
cowplot::theme_map() +
ggspatial::annotation_scale(style = "ticks", location = "br")
library(patchwork)
a | b