ts_save: Save Previous Plot
Description
Save Previous Plot
Usage
ts_save(
filename = tempfile(fileext = ".pdf"),
width = 10,
height = 5,
device = NULL,
open = TRUE
)
Value
invisible TRUE
, if successful
Arguments
- filename
filename
- width
width
- height
height
- device
device
- open
logical, should the saved plot be opened?
Examples
Run this code# \donttest{
ts_plot(AirPassengers)
tf <- tempfile(fileext = ".pdf")
ts_save(tf)
unlink(tf)
# }
Run the code above in your browser using DataLab