densityPlot | R Documentation |
Draw Smoothed Kernel density plot
densityPlot( x, sig = 0.05, digits = 3, xlab = "Indirect effect(ab)", ylab = NULL )
x |
A numeric vector |
sig |
significant level. Default value is 0.05 |
digits |
Integer indicating the number of decimal places |
xlab |
character. x axis label |
ylab |
character. y axis label |
require(lavaan) labels=list(X="cond",M="pmi",Y="reaction") model=tripleEquation(labels=labels) set.seed(1234) semfit=sem(model,data=pmi,se="boot",bootstrap=100) bootData=getBootData(semfit) bootData$indirect=bootData$a*bootData$b densityPlot(bootData$indirect)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.