R/ts_plot.R
ts_save.Rd
Save Previous Plot
ts_save( filename = tempfile(fileext = ".pdf"), width = 10, height = 5, device = NULL, open = TRUE )
filename
width
height
device
logical, should the saved plot be opened?
invisible TRUE, if successful
TRUE
# \donttest{ ts_plot(AirPassengers) tf <- tempfile(fileext = ".pdf") ts_save(tf) unlink(tf) # }