Learn R Programming

avstrat (version 0.1.1)

theme_avstrat: Custom theme for stratigraphic plots

Description

A ggplot2 theme designed to work well with typical plot ouput from avstrat, and matching the author's preferred aesthetics.

Usage

theme_avstrat(base_size = 11, base_family = "arial")

Value

A ggplot2::theme() object.

Arguments

base_size

Base font size. Defaults to 11.

base_family

Base font famil. Defaults to Arial.

Examples

Run this code
# Apply a custom theme to one plot
ggstrat(df = example_data_strat, section_name = "21LSHD02") +
  theme_avstrat()

# Set the custom theme as default for all plots
ggplot2::theme_set(theme_avstrat())
ggstrat(df = example_data_strat, section_name = "21LSHD02")

Run the code above in your browser using DataLab