embed_plot_pdf: Embeds a plot into an rmarkdown pdf

Description Usage Arguments Value Examples

View source: R/plotExportFunctions.R

Description

Embeds a plot into an rmarkdown pdf

Usage

1

Arguments

plot

plot object created by lavaanPlot

path

Filename to save the image

Value

no return value calls include_graphics to embed plot in pdf

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: 
embed_plot_pdf(pl, "plot2.pdf")

## End(Not run)

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