View source: R/plotExportFunctions.R
save_png | R Documentation |
Saves a plot as a png
save_png(plot, path, width = NULL, height = NULL)
plot |
plot object created by |
path |
filename to save the image |
width |
width of image in pixels, NULL for default |
height |
height of image, NULL for default |
no return value saves plot as png
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.