Learn R Programming

simplevis (version 4.2.0)

theme_sf: Theme for ggplot maps of simple features.

Description

Theme for ggplot maps of simple features.

Usage

theme_sf(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(ggplot2)

ggplot() +
  theme_sf("Courier", 9, 7) +
  ggtitle("This is a title of a font family and size")
# }

Run the code above in your browser using DataLab