ggout: Save ggplot with output path

View source: R/fn_gg.R

ggoutR Documentation

Save ggplot with output path

Description

Save ggplot with output path

Usage

ggout(plt, fpath, lab = "", omit = "", ...)

Arguments

plt

A ggplot object.

fpath

⁠<chr>⁠ File path to save output and add to label.

lab

⁠<chr>⁠ Custom label to use instead of fpath.

omit

⁠<chr>⁠ Text to omit from the label.

...

Other arguments to pass to ggplot2::ggsave().

Value

The file path of the output.

See Also

ggplot2::ggsave()

Examples

## Not run: 
fpath = "../output.png"
iris |> gghist() |> ggout(fpath)

## End(Not run)

edar documentation built on Nov. 15, 2026, 1:07 a.m.