nfdplot: Print and save nfdplots

print.nfdplotR Documentation

Print and save nfdplots

Description

save_nfdplot() is a convenient function for saving nfdplots. While print.nfdplot() prints covers showing the plots when R is in interactive mode. nfdplot objects are returned by plot.nfd(), plot.nfd_stats(), and plot.nfd_pdf().

Usage

## S3 method for class 'nfdplot'
print(x, ...)

save_nfdplot(x, filename, width = NA, height = NA)

Arguments

x

An object inheriting from nfdplot.

...

Other parameters not used by this method.

filename

File name to create on disk. Should be a .png or .pdf file. If it is a .png file, then it will create multiple files with ⁠%02d⁠ inserted at the end of the file to ensure unique file names. Directory should already exist.

width, height

Plot size in inches. If not specified, defaults to 7.

Value

x is are invisibly returned.

Invisibly returns nfdplot


BoulderCodeHub/CRSSIO documentation built on July 2, 2023, 5:15 p.m.