Writes PDF/SVG as vector (fonts embedded) and PNG/TIFF at 600 dpi, using Nature/Science column widths.
Usage
lcz_save_figure(
plot,
filename,
width = c("double", "single"),
height = NULL,
dpi = 600,
bg = "white",
folder = "LCZ4r_output",
lang = NULL,
quiet = FALSE
)Arguments
- plot
A ggplot object.
- filename
File name (extension decides the device).
- width
"single"(89 mm),"double"(183 mm) or a number in mm.- height
Height in mm. Defaults to a 0.62 aspect ratio.
- dpi
Raster resolution. Default 600.
- bg
Background colour.
- folder
Output folder.
- lang
Language for the confirmation message.
- quiet
Logical. Suppress the confirmation message.
