theme_iea: Plotting theme for IEA

Description Usage Arguments Examples

View source: R/plot.R

Description

Derived from ggplot2::theme_classic(), a classic-looking theme with x and y axis lines and no gridlines. Additionally dropped x and y axis labels, reduced plot margin.

Usage

1
2
3
4
5
6
theme_iea(
  base_size = 14,
  base_family = "",
  base_line_size = base_size/28,
  base_rect_size = base_size/28
)

Arguments

base_size

base font size, given in pts.

base_family

base font family

base_line_size

base size for line elements

base_rect_size

base size for rect elements

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
library(ggplot2)

# default ggplot2 theme
plot_ts(ts1) + theme_gray()

# slimmed down ggplot2 theme
plot_ts(ts1) + theme_classic()

# this custom IEA theme, the default theme to plot_ts()
plot_ts(ts1, theme_plot = theme_iea)

marinebon/ecoidx documentation built on Jan. 19, 2022, 1:46 p.m.