R/theme_map.R

Defines functions theme_map

Documented in theme_map

##' @title A ggplot2 theme for maps
##' @description A ggplot2 theme for maps
##' @param ... additional arguments passed to \code{\link[ggplot2]{theme}} function
##' @import ggplot2
##' @export

theme_map <- function(...) {
    theme_bw(...) %+replace%
      theme(panel.background = element_blank(),
      panel.border = element_rect(fill = NA, colour = "black", size = 0.2),
      panel.grid = element_blank(), plot.background = element_blank(),
      axis.ticks.x = element_line(colour = "black", size = 0.2),
      axis.ticks.y = element_line(colour = "black", size = 0.2),
      axis.line.x = element_blank(), axis.line.y = element_blank()
      )
  }
MikkoVihtakari/PlotSvalbard documentation built on July 12, 2022, 10:20 a.m.