ts_save | R Documentation |
Save Previous Plot
ts_save(
filename = tempfile(fileext = ".pdf"),
width = 10,
height = 5,
device = NULL,
open = TRUE
)
filename |
filename |
width |
width |
height |
height |
device |
device |
open |
logical, should the saved plot be opened? |
invisible TRUE
, if successful
ts_plot(AirPassengers)
tf <- tempfile(fileext = ".pdf")
ts_save(tf)
unlink(tf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.