- df
A data frame containing stratigraphic data.
Must include columns stratsection_name, and any other variables needed
for the plotfunction, such as: stratlayer_order, grainsize,
depth, and stratlayer_type.
- plotfunction
A function that generates a plot for a single
section. It should accept at least two arguments: the full data
frame (df) and a section identifier (stratsection_name).
Defaults to ggstrat().
- outdir
Directory where plots will be saved. Suggest supplying a name
such as "StratSectionsPlotted", will create directory if it
does not exist.
- file_type
File extension for saved plots (e.g. "png",
"pdf"). Defaults to "png".
- dpi
Plot resolution in dots per inch. Can be a numeric value
(e.g. 300) or one of "screen", "print", or "retina".
Defaults to 300.
- width
Plot width passed to ggplot2::ggsave(). Defaults to 4.
- height
Plot height passed to ggplot2::ggsave(). Defaults to 8.
- units
Units for width and height. One of "in", "cm",
or "mm". Defaults to "in".
- ask
Logical. If TRUE (default) and running interactively,
the function will prompt the user to confirm before generating
and saving all plots.
- ...
Additional arguments passed on to plotfunction.