pathDiagram
creates a description of the path diagram
for a PLS path model object of class sempls
to be processed by the
graph-drawing program dot; see Gansner, Koutsofios, and North (2006)
and pathDiagram(object, ...)
## S3 method for class 'sempls':
pathDiagram(object, file, min.rank=NULL, max.rank=NULL, same.rank=NULL,
edge.labels=c("names", "values", "both"), size=c(8,8),
node.font=c("Helvetica", 14), edge.font=c("Helvetica", 10),
rank.direction=c("LR", "TB"), digits=2, output.type =
c("graphics", "dot"), graphics.fmt = "pdf", dot.options=NULL,
rSquared=NULL, full=TRUE, ...)
sempls
objectpathDiagram.sempls
.character
string listing names of variables to be assigned
minimum rank (order) in the graph; the names should be separated by commas.character
string listing names of variables to be assigned
maximum rank in the graph; the names should be separated by commas.character
string or vector of character
strings of variables
to be assigned equivalent rank in the graph; names in each string should be
separated by commas."names"
to label arrows with parameter names;
"values"
to label arrows with parameter estimates, or both
"LR"
, the default,
or top-to-bottom, "TB"
."graphics"
, the default, both a graphics.fmt
is also used for
the extension of the graphics file that is created.character
string.rSquared
. If
supplied, the R-squared values are printed in the diagram.FALSE
the .dot file is created only for the structural model.pathDiagram
is used for its side-effect, producing a
graph description of the model.sempls
, rSquared
### create .pdf file for the path diagram
### Note that graphviz (www.graphviz.org) must be available.
pathDiagram(ecsi, file="ecsiPLS1", edge.labels="both",
output.type="graphics", digits=3, graphics.fmt = "pdf")
# include R-squared values
pathDiagram(ecsi, file="ecsiPLS2", edge.labels="both",
output.type="graphics", digits=3, graphics.fmt = "pdf",
rSquared=Rsquared)
# only the structural model
pathDiagram(ecsi, file="ecsiPLS3", edge.labels="both",
output.type="graphics", digits=3, graphics.fmt = "pdf",
rSquared=Rsquared, full=FALSE)
Run the code above in your browser using DataLab