pathDiagram(semPLS)
pathDiagram()所属R语言包:semPLS
Draw Path Diagram
绘制路径图
译者:生物统计家园网 机器人LoveR
描述----------Description----------
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/.
pathDiagram创建一个的PLS路径的模型类的对象的路径图的描述sempls要处理的图形的绘图程序点; Gansner,Koutsofios,北美洲(2006)和呻/ www.graphviz.org/。
用法----------Usage----------
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, ...)
参数----------Arguments----------
参数:object
A sempls object
Asempls对象
参数:...
Arguments to be passed down to pathDiagram.sempls.
参数被传递给pathDiagram.sempls。
参数: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).
一个文件,在其中写点描述的路径图;如果不指定,则说明将写入标准输出(通常是R控制台)。
参数:min.rank
A character string listing names of variables to be assigned minimum rank (order) in the graph; the names should be separated by commas.
Acharacter字符串的形式列出的变量名被分配在图中的最低排名(顺序)的名称应以逗号分隔。
参数:max.rank
A character string listing names of variables to be assigned maximum rank in the graph; the names should be separated by commas.
Acharacter字符串的形式列出的变量名被分配在图中的最高等级的名称应以逗号分隔。
参数:same.rank
A 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.
Acharactercharacter字符串的变量被分配同等职级图中的每个字符串中的名称的字符串或向量应以逗号分隔。
参数:edge.labels
"names" to label arrows with parameter names; "values" to label arrows with parameter estimates, or both
"names"标记箭头的参数名称; "values"标记箭头参数估计,或both
参数: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, "LR", the default, or top-to-bottom, "TB".
绘制图左到右,"LR",默认情况下,或顶部至底部的,"TB"。
参数:digits
Number of digits after the decimal point (default, 2) to which to round parameter estimates.
小数点后(默认情况下,2)圆的参数估计的数字号码。
参数:output.type
If "graphics", the default, both a “.dot” file and a graphics file will be created.
如果"graphics",默认情况下,既是“点”文件和图形文件将被创建。
参数:graphics.fmt
A graphics format recognized by the dot program; the default is “pdf”; graphics.fmt is also used for the extension of the graphics file that is created.
的图形格式,,点程序确认;默认为“PDF”,“graphics.fmt也为扩展名的图形文件的创建。
参数:dot.options
Options to be passed to the dot program, given as a character string.
选项将被传递给点方案中,给定的作为character字符串。
参数:rSquared
A matrix returned from method rSquared. If supplied, the R-squared values are printed in the diagram.
返回的矩阵方法rSquared。如果提供,都印在图中的R-平方值。
参数:full
If FALSE the .dot file is created only for the structural model.
如果FALSE。dot文件只能创建结构模型。
值----------Value----------
pathDiagram is used for its side-effect, producing a graph description of the model.
pathDiagram被用于其副作用,产生的模型的曲线图描述。
(作者)----------Author(s)----------
Armin Monecke <a href="mailto:armin.monecke@stat.uni-muenchen.de">armin.monecke@stat.uni-muenchen.de</a>
参考文献----------References----------
Drawing graphs with dot. http://www.graphviz.org/Documentation/dotguide.pdf.
Modeling Using Partial Least Squares. Journal of Statistical Software, 48(3), 1-32., URL http://jstatsoft.org/v48/i03/.
参见----------See Also----------
sempls, rSquared
sempls,rSquared
实例----------Examples----------
### create .pdf file for the path diagram[##创建PDF文件的路径图]
### Note that graphviz (www.graphviz.org) must be available.[##需要注意的是必须提供的graphviz(www.graphviz.org)。]
## Not run: [#不运行:]
pathDiagram(ecsi, file="ecsiPLS1", edge.labels="both",
output.type="graphics", digits=3, graphics.fmt = "pdf")
# include R-squared values[包括R-平方值]
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)[#(不执行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|