-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4a1ee61
commit de54c46
Showing
3 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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%") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
) | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.