inst/work/test-saveas.R

##---------------------------------------------------------------
##
##  Test saveas()
##
library(fsdaR)

X <- iris[,1:4]
out <- fsmult(X, monitoring=TRUE)
covplot(out, tag="xxx")

## This will work, but if I skip format MWException: Not enough input arguments exception will be thrown
##  Also, if I skip fig, i.e. use the current figure, "gcf", will not work
saveas("xxx", fname="xxx.jpg", format="jpg")

Try the fsdaR package in your browser

Any scripts or data that you put into this service are public.

fsdaR documentation built on March 31, 2023, 8:18 p.m.