save_plots: Save fcoex object plots

Description Usage Arguments Value Examples

Description

Save plots into the directory specified by the directory argument. Note: If no directory is specified, it will save to tempdir(). A possible option is setting directory = "./Plots"

This function was modified from the CEMiTool package. Chunks of code were retained "as is"

Usage

1
2
3
4
save_plots(fc, name, force = FALSE, directory = "tempdir()")

## S4 method for signature 'fcoex'
save_plots(fc, name, force = FALSE, directory = "tempdir()")

Arguments

fc

Object of class fcoex.

name

The name of the file to be saved.

force

If the directory exists, execution will not stop.

directory

Directory into which the files will be saved.

Value

A pdf file or files with the desired plot(s)

Examples

1
2
3
4
5
## Not run: 
data(fc)
save_plots(fc, name = "Example")

## End(Not run)

csbl-usp/fcoex documentation built on Sept. 15, 2021, 7:42 a.m.