R/plot_maps.R

Defines functions plot_municipalities plot_governorates

Documented in plot_governorates plot_municipalities

#' Plot a map of Tunisia showing the boundaries of Governorates.
#'
#' @return ggplot2 plot
#' @export
plot_governorates <- function() {
  ggplot2::ggplot(tunmaps::tun_governorates) +
    ggplot2::geom_sf() +
    ggplot2::theme_void() +
    ggplot2::labs(
      caption = "Produced with tunmaps"
    )
}

#' Plot a map of Tunisia showing the boundaries of Municipalities.
#'
#' @return ggplot2 plot
#' @export
plot_municipalities <- function() {
  ggplot2::ggplot(tunmaps::tun_municipalities) +
    ggplot2::geom_sf() +
    ggplot2::theme_void() +
    ggplot2::labs(
      caption = "Produced with tunmaps"
    )
}
iyedg/tunmaps documentation built on March 18, 2022, 12:08 a.m.