report_save: Save plots for LaTeX reports in correct dimensions

View source: R/report_save.R

report_saveR Documentation

Save plots for LaTeX reports in correct dimensions

Description

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,
  path = "04 Figures",
  width = 11.75,
  height = 9,
  units = "cm"
)

Arguments

filename

Desired filename

plot

Plot

path

Desired path for saving

width

Plot width, defaults to 11.75 cm

height

Plot height, defaults to 9 cm

units

Unit, defaults to "cm"

Value

Nothing, used for side-effects only


benediktclaus/benelib documentation built on Feb. 1, 2024, 1:39 a.m.