Hi
I don't know if this is the right place to post this question/remark...
I think there is a bug when one of the variables contain a "." While it is expressely forbidden for indicator variables:
Erreur : The name 'x1.1' is illegal because it contains the '.' character
it is not checked for the latents variables, leading to potential errors when using graphVIz ( See modified example below).
Simple workaround would be to add "" to all variables names when exporting to graphViz, this is only a guess but probably using something like: "\"graph@latentVars[[i]]\""
Example:
require(OpenMx)
data(demoOneFactor)
manifests <- names(demoOneFactor)
latents <- c("G.FALSE")
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=F, values=1.0),
mxData(cov(demoOneFactor), type="cov",
numObs=500))
Run<-mxRun(factorModel)
omxGraphviz(Run)