Skip to contents

This function saves a ggplot2 plot in the desired location with the correct dimensions for a LaTeX report. If a custom thematic theme is used, this only works for vector graphics (e.g., PDF).

Usage

report_save(
  filename,
  plot,
  width = 11.75,
  path = "04 Figures",
  height = 9,
  units = "cm"
)

Arguments

filename

Desired filename

plot

Plot

width

Plot width, defaults to 11.75 cm

path

Desired path for saving

height

Plot height, defaults to 9 cm

units

Unit, defaults to "cm"

Value

Nothing, used for side-effects only