save_png: Saves a plot as a png

Description Usage Arguments Value Examples

View source: R/plotExportFunctions.R

Description

Saves a plot as a png

Usage

1
save_png(plot, path)

Arguments

plot

plot object created by lavaanPlot

path

Filename to save the image

Value

no return value saves plot as png

Examples

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)

lavaanPlot documentation built on Aug. 13, 2021, 5:07 p.m.