plot.netSEM: Plotting of netSEM diagram

Description Usage Arguments Value See Also Examples

View source: R/plot.R

Description

Plot netSEM result plot.netSEM plots a structural equation network model diagram based on best functional form for each selected pairwise variable.

Usage

1
2
3
## S3 method for class 'netSEM'
plot(x, res, plot.save = FALSE, filename = NULL,
  style = TRUE, label = TRUE, ...)

Arguments

x

An object of class "netSEM", the returned list from netSEMm. Plotting uses the first element of this list (table) in which the first column of it is endogenous variable, second column is variable and other columns are corresponding best functional form, r-squared, adj-r-squared, P-value1, P-value2 and P-value3.

res

An object of class "subsetData", the returned list from subsetData. Stronger Solid lines represent relationship with higher adjusted R-sqr and weak dotted lines with less than the first cutoff.

plot.save

True/False, it saves the network diagram plot as png file. The default is false.

filename

A character string naming a file to save as a png file.

style

True/False, it plots the first interval in the network diagram with dotted weak line. The default is True.

label

True/False, it use label to express model and Adj-R2 in the path between variables. The default is True.

...

A S3 generic/method consistency.

Value

An html style plot of pairwise relationship pathway diagram between exogenous variables and an endogenous variable. Arrows show relationships between each variable with given statistical relations along the connection lines.

See Also

netSEMm

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Load acrylic data set
data(acrylic)
# Build a semi-gSEM model
ans <- netSEMm(acrylic)
# Subset dataset with three cutoff
res <- subsetData(ans,cutoff=c(0.3,0.6,0.8))
# Plot the network model 
plot(ans,res)
# plot the network diagram and save as 'semplot.png' file
#plot(ans,res,plot.save=TRUE,filename=c("semplot"))

netSEM documentation built on May 2, 2019, 6:32 a.m.