This function creates a one-pager summary of ESP data.

one_pager(
  data,
  overall_data,
  years = 2017:2021,
  head_text = "some text",
  foot_text = "more text",
  bayes_path = system.file("images/bayes.png", package = "AKesp"),
  header_path = system.file("images/header.png", package = "AKesp"),
  output_name = "one-pager.pdf"
)

Arguments

data

The data you want displayed in traffic light figures/table (pulled from AKFIN)

overall_data

The data to use in creating the overall score figure

years

The years to display in the traffic light table

head_text

The text to display at the top of the one-pager

foot_text

The text to display at the bottom of the one-pager

bayes_path

The file path to the Bayesian Adaptive Sampling figure (must be a png)

header_path

The file path to the image to use as the header (must be a png)

output_name

The file name of the output. Include the file extension (can be any file extension that is compatible with ggsave)

Value

A saved one-pager file