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)



tsbox documentation built on Oct. 23, 2024, 1:07 a.m.