Description Usage Arguments Value Examples
View source: R/plotExportFunctions.R
Saves a plot as a png
1 |
plot |
plot object created by |
path |
Filename to save the image |
no return value saves plot as png
1 2 3 4 5 6 7 8 9 | library(lavaan)
model <- 'mpg ~ cyl + disp + hp
qsec ~ disp + hp + wt'
fit <- sem(model, data = mtcars)
pl <- lavaanPlot(model = fit)
## Not run:
save_png(pl, "plot.png")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.