save_knnstplot: Save a knnstplot

View source: R/save_knnstplot.R

save_knnstplotR Documentation

Save a knnstplot

Description

save_knnstplot() is a convenient function for saving the knn space-time disaggregation diagnostic plots returned by plot.knnst() as either a pdf or collection of png files.

Usage

save_knnstplot(knnstplot, filename, width = NA, height = NA)

Arguments

knnstplot

An object of type knnstplot, i.e., object returned from plot.knnst().

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

Invisibly returns knnstplot


rabutler-usbr/knnstdisagg documentation built on Sept. 14, 2023, 2:47 p.m.