densityPlot: Draw Smoothed Kernel density plot

View source: R/densityPlot.R

densityPlotR Documentation

Draw Smoothed Kernel density plot

Description

Draw Smoothed Kernel density plot

Usage

densityPlot(
  x,
  sig = 0.05,
  digits = 3,
  xlab = "Indirect effect(ab)",
  ylab = NULL
)

Arguments

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

Examples

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)


processR documentation built on Jan. 23, 2023, 5:44 p.m.