plot.bsem: 'bsem' object plot

Description Usage Arguments Value Author(s) See Also Examples

View source: R/plot.R

Description

'bsem' object plot

Usage

1
2
## S3 method for class 'bsem'
plot(x, digits = 2, fontsize = 15, width = 5, size = 10, ...)

Arguments

x

an object of class bsem

digits

number of digits to display

fontsize

edge fontsize (estimates character size)

width

lines width

size

nodes size (for both: ellipses and boxes)

...

further arguments passed to visNetwork::visNetwork function

Value

a visNetwork graph:

The ellipsoidal nodes represent the latent variables

The boxes represent the manifest variables

The dashed lines represent the linear relations between latent scores or between latent scores and exogenous variables

The solid lines represent the relationship between the manifest an latent variables

The recursive solid lines refers to the error variance estimate of each manifest or exogenous variable

Author(s)

RVPanaro

See Also

sem, simdata, arrayplot, summary.bsem, print.bsem

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
dt <- bsem::simdata()
names(dt)


semfit <- bsem::sem(
  data = dt$data,
  blocks = dt$blocks,
  paths = dt$paths,
  exogenous = dt$exogenous,
  signals = dt$signals,
  cores = 1
)
plot(semfit)

bsem documentation built on Aug. 14, 2020, 5:07 p.m.