Description Usage Arguments Value References See Also Examples
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 http://www.graphviz.org/.
1 2 3 4 5 6 7 8 9 10 | 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, ...)
|
object |
A |
... |
Arguments to be passed down to |
file |
A file in which to write the dot description of the path diagram; if not specified, the description is written to standard output (normally the R console). |
min.rank |
A |
max.rank |
A |
same.rank |
A |
edge.labels |
|
size |
The size of the graph, in inches. |
node.font |
Font name and point-size for printing variable names. |
edge.font |
Font name and point-size for printing arrow names or values. |
rank.direction |
Draw graph left-to-right, |
digits |
Number of digits after the decimal point (default, 2) to which to round parameter estimates. |
output.type |
If |
graphics.fmt |
A graphics format recognized by the dot program;
the default is “pdf”; |
dot.options |
Options to be passed to the dot program,
given as a |
rSquared |
A matrix returned from method |
full |
If |
pathDiagram
is used for its side-effect, producing a
graph description of the model.
Gansner, E., E. Koutsofios, and S. North (2006) Drawing graphs with dot. http://www.graphviz.org/Documentation/dotguide.pdf.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ### create .pdf file for the path diagram
### Note that graphviz (www.graphviz.org) must be available.
## Not run:
pathDiagram(ecsi, file="ecsiPLS1", edge.labels="both",
output.type="graphics", digits=3, graphics.fmt = "pdf")
# include R-squared values
rSquared <- rSquared(ecsi)
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)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.