plot.InformativeTesting {lavaan}R Documentation

Plot output InformativeTesting()

Description

The function plots the distributions of bootstrapped LRT values and plug-in p-values.

Usage

  ## S3 method for class 'InformativeTesting'
plot(x, ...,
       type = c("all", 
                "LRT.A","LRT.B", 
                "plugin.pvalues.A", 
                "plugin.pvalues.B"),
       main = "main title(s)", xlab = "xlabel",
       ylab = "ylabel", freq = TRUE, cex.main = 1, 
       cex.lab = NULL, nclass = NULL, col = "grey",
       border = par("fg"), axes = TRUE, vline.LRT = FALSE, 
       vline.col = "red", lty = NULL, lwd = NULL, 
       legend = FALSE, cex.legend = 0.75, 
       loc.legend = "topright")

Arguments

x

The output of the InformativeTesting() function

type

If "all", all available plots are plotted simultaneously. If LRT.A or LRT.B, a distribution of the bootstrapped LRT values is plotted. If plugin.pvalues.A or plugin.pvalues.B, a distribution of the boostrapped plug-in p-values is plotted.

main

The main title(s) for the plot(s)

xlab

A label for the x axis, default depends on input type.

ylab

A label for the y axis, default is "frequency".

freq

Logical; if TRUE, the histogram graphic is a representation of frequencies, the counts component of the result; if FALSE, probability densities, component density, are plotted (so that the histogram has a total area of one). The default is set to TRUE

.

cex.main

The magnification to be used for main titles relative to the current setting of cex. The default is set to 1.

cex.lab

The magnification to be used for x and y labels relative to the current setting of cex.

nclass

Integer; number of classes.

col

A colour to be used to fill the bars. The default of NULL yields unfilled bars.

border

Color for rectangle border(s). The default means par("fg").

axes

Logical; if TRUE the x and y axis are plotted.

vline.LRT

Logical; if TRUE a vertical line is drawn at the observed LRT value.

vline.col

Color for the vline.LRT. Default is set on "red"

lty

The line type. Line types can either be specified as an integer (0=blank, 1=solid (default), 2=dashed, 3=dotted, 4=dotdash, 5=longdash, 6=twodash) or as one of the character strings "blank", "solid", "dashed", "dotted", "dotdash", "longdash", or "twodash", where "blank" uses 'invisible lines' (i.e., does not draw them).

lwd

The line width, a positive number, defaulting to 1.

legend

Logical; if TRUE a legend is added to the plot with the observed LRT value and plug-in p-value.

cex.legend

A numerical value giving the amount by which the legend text and symbols should be magnified relative to the default. This starts as 1 when a device is opened, and is reset when the layout is changed

...

Further arguments to be passed to the plot function.

loc.legend

The location of the legend, specified by a single keyword from the list "bottomright", "bottom", "bottomleft", "left", "topleft", "top", "topright", "right" and "center".


[Package lavaan version 0.4-12 Index]