Skip to contents

Follows figures4papers conventions: vector PDF with TrueType font embedding and optional raster PNG at 400 DPI. White background, tight crop.

Usage

save_pppower_figure(
  plot,
  path,
  width = 10,
  height = 5,
  dpi = 400,
  formats = c("pdf", "png")
)

Arguments

plot

A ggplot2 object.

path

Base path without extension (e.g., "figures/power_curve").

width

Figure width in inches (default 10).

height

Figure height in inches (default 5).

dpi

DPI for PNG output (default 400).

formats

Character vector containing any of "pdf" and "png".

Value

Invisible NULL. Side effect: writes the requested files.