Skip to contents

Extracts a plot object attached to a data set, applies a title, subtitle, and theme, and returns the plot.

Usage

iidda_render_plot(
  data,
  title = TitleGuesser(),
  subtitle = TimeRangeDescriber(),
  theme = iidda_theme
)

Arguments

data

A data frame with an attached plot object.

title

A plot title, or a function that takes data and returns a title string.

subtitle

A plot subtitle, or a function that takes data and returns a subtitle string.

theme

A function that returns a ggplot2::theme object.