Skip to content

Commit

Permalink
Begin map theme
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksanderbl29 committed Jun 28, 2024
1 parent 4a1ee61 commit de54c46
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Generated by roxygen2: do not edit by hand

export(format_num)
export(theme_map)
importFrom(ggplot2,"%+replace%")
24 changes: 24 additions & 0 deletions R/theme_alek_map.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#' theme_alek_map()
#' A clean theme that is good for displaying maps from
#' \code{\link[ggplot2]{geom_map}()}.
#'
#' @inheritParams ggplot2::theme_grey
#'
#' @export
#' @importFrom ggplot2 %+replace%
theme_map <- function(base_size = 9, base_family = "") {
theme_bw(base_size = base_size, base_family = base_family) %+replace%
theme(
axis.line = element_blank(),
axis.text = element_blank(),
axis.ticks = element_blank(),
axis.title = element_blank(),
panel.background = element_blank(),
panel.border = element_blank(),
panel.grid = element_blank(),
panel.spacing = unit(0, "lines"),
plot.background = element_blank(),
legend.justification = c(0, 0),
legend.position = c(0, 0)
)
}
20 changes: 20 additions & 0 deletions man/theme_map.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit de54c46

Please sign in to comment.