onyx: onyx

Description Usage Arguments Examples

View source: R/onyx.R

Description

Starts Onyx executable to display a path diagram from either an OpenMx or lavaan model representation.

Usage

1
onyx(model = NULL, onyxfile = NULL, batch = NULL)

Arguments

model

An OpenMx or lavaan model. Defaults to NULL. If omitted, Onyx is started with an empty desktop, otherwise the specified model is rendered as path diagram

onyyfile

path to Onyx executable (onyx-***.jar). Defaults to NULL. If NULL, Onyx searches local directors, otherwise downloads Onyx from official repository.

mode

batch operation mode (experimental)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
require(OpenMx)
data(demoOneFactor)
manifests <- names(demoOneFactor)
latents <- c("G")
factorModel <- mxModel("One Factor",
                       type="RAM",
                       manifestVars = manifests,
                       latentVars = latents,
                       mxPath(from=latents, to=manifests),
                       mxPath(from=manifests, arrows=2),
                       mxPath(from=latents, arrows=2,
                              free=FALSE, values=1.0),
                       mxData(cov(demoOneFactor), type="cov",
                              numObs=500))
fit <- mxRun(factorModel)
## Not run: 
onyx(fit)

## End(Not run)

brandmaier/onyxR documentation built on Nov. 5, 2021, 11:04 a.m.