Learn R Programming

simplevis (version 5.0.0)

theme_map: Theme for maps.

Description

Theme for maps.

Usage

theme_map(font_family = "", font_size_title = 11, font_size_body = 10)

Arguments

font_family

Font family to use. Defaults to "".

font_size_title

Font size for the title text. Defaults to 11.

font_size_body

Font size for all text other than the title. Defaults to 10.

Value

A ggplot theme.

Examples

Run this code
# NOT RUN {
library(simplevis)
library(ggplot2)

ggplot(nz) +
  geom_sf() +
  theme_map("Courier", 9, 7) +
  ggtitle("This is a title with a specified font family and size") 
  
# }

Run the code above in your browser using DataLab