ts_save: Save Previous Plot

View source: R/ts_plot.R

ts_saveR Documentation

Save Previous Plot

Description

Save Previous Plot

Usage

ts_save(
  filename = tempfile(fileext = ".pdf"),
  width = 10,
  height = 5,
  device = NULL,
  open = TRUE
)

Arguments

filename

filename

width

width

height

height

device

device

open

logical, should the saved plot be opened?

Value

invisible TRUE, if successful

Examples


ts_plot(AirPassengers)
tf <- tempfile(fileext = ".pdf")
ts_save(tf)
unlink(tf)



christophsax/tsbox documentation built on Sept. 22, 2023, 2:35 p.m.