36 lines
801 B
R
36 lines
801 B
R
% Generated by roxygen2: do not edit by hand
|
|
% Please edit documentation in R/functions.R
|
|
\name{helper_save_fig}
|
|
\alias{helper_save_fig}
|
|
\title{Helper: Save Plot for Quarto Slide}
|
|
\usage{
|
|
helper_save_fig(
|
|
plot_obj,
|
|
name,
|
|
type = c("map", "plot"),
|
|
width = 10,
|
|
height = 6.18,
|
|
dpi = 300
|
|
)
|
|
}
|
|
\arguments{
|
|
\item{plot_obj}{The ggplot object to save.}
|
|
|
|
\item{name}{A short descriptive name (e.g., "wa_ecoregions").}
|
|
|
|
\item{type}{Either "map" or "plot". Adds this prefix to the filename.}
|
|
|
|
\item{width}{Width in inches (default: 10).}
|
|
|
|
\item{height}{Height in inches (default: 6.18).}
|
|
|
|
\item{dpi}{Resolution (default: 300).}
|
|
}
|
|
\value{
|
|
The full file path (invisibly).
|
|
}
|
|
\description{
|
|
Saves a ggplot object as a PNG, sized to fit comfortably
|
|
below a standard slide title, with robust font handling.
|
|
}
|