plot.smacof(smacof)
plot.smacof()所属R语言包:smacof
2D SMACOF plots
2D SMACOF图
译者:生物统计家园网 机器人LoveR
描述----------Description----------
These methods provide various 2D plots for SMACOF models.
这些方法提供了各种2D绘图SMACOF模型。
用法----------Usage----------
## S3 method for class 'smacof'
plot(x, plot.type = "confplot", plot.dim = c(1,2), sphere = TRUE, bubscale = 3, label.conf = list(label = TRUE, pos = 1, col = 1), identify = FALSE, type, main, xlab, ylab, xlim, ylim, ...)
## S3 method for class 'smacofR'
plot(x, plot.type = "confplot", joint = FALSE, plot.dim = c(1,2), col.rows = "red", col.columns = "blue", label.conf.rows = list(label = TRUE, pos = 1, col = "red"), label.conf.columns = list(label = TRUE, pos = 1, col = "blue"), type, main, xlab, ylab, xlim, ylim, ...)
## S3 method for class 'smacofID'
plot(x, plot.type = "confplot", plot.dim = c(1,2), bubscale = 5, label.conf = list(label = TRUE, pos = 1, col = 1), identify = FALSE, type, main, xlab, ylab, xlim, ylim, ...)
参数----------Arguments----------
参数:x
Object of class "smacof", "smacofR", and "smacofID" (see details)
对象的类"smacof","smacofR"和"smacofID"(详见)
参数:plot.type
String indicating which type of plot to be produced: "confplot", "resplot" "Shepard", "stressplot" (see details)
哪种类型的图产生的字符串:"confplot","resplot""Shepard","stressplot"(详见)
参数:plot.dim
Vector with dimensions to be plotted.
向量的尺寸绘制。
参数:main
Plot title.
图称号。
参数:xlab
Label of x-axis.
标签的x轴。
参数:ylab
Label of y-axis.
出版商的y轴。
参数:xlim
Scale x-axis.
缩放X轴。
参数:ylim
Scale y-axis.
量表y轴。
参数:type
What type of plot should be drawn (see also plot).
应该得出什么类型的图(见plot)。
参数:sphere
In case of spherical smacof, whether sphere should be plotted or not.
球体以球形smacof的情况下,无论是应绘制或没有。
参数:bubscale
Scaling factor (size) for the bubble plot.
气泡图(大小)的比例因子。
参数:label.conf
List with arguments for plotting the labels of the configurations in a configuration plot (logical value whether to plot labels or not, label position, label color).
配置图(逻辑值是否绘制标签或标签的位置,标签颜色)绘制标签的配置与参数列表。
参数:identify
If TRUE, the identify() function is called internally that allows to add configuration labels by mouse click.
如果TRUE,identify()函数被调用内部,允许通过鼠标点击添加配置标签。
参数:joint
If TRUE, the configurations are plotted jointly in rectangular smacof.
如果TRUE,配置绘制在矩形smacof共同。
参数:col.rows
Row colors in rectangular configuration plot.
行的颜色矩形组态图。
参数:col.columns
Column colors in rectangular configuration plot.
矩形柱的颜色配置图。
参数:label.conf.rows
List with arguments for plotting the labels of the row configurations in a rectangular configuration plot (logical value whether to plot labels or not, label position, label color).
用于绘制矩形结构图(逻辑值是否绘制标签或标签的位置,标签颜色)行配置的标签与参数列表。
参数:label.conf.columns
List with arguments for plotting the labels of the columns configurations in a rectangular configuration plot (logical value whether to plot labels or not, label position, label color).
参数为绘制矩形结构图(逻辑值是否绘制标签或标签的位置,标签颜色)列配置的标签列表。
参数:...
Further plot arguments passed: see plot for detailed information.
进一步的图传递的参数:见plot的详细信息。
Details
详细信息----------Details----------
smacofSym() creates object of class "smacof", whereas smacofRect() produces "smacofR" and smacofIndDiff() generates "smacofID".
smacofSym()创建对象的类"smacof",而smacofRect()生产"smacofR"和smacofIndDiff()产生"smacofID",。
Plot description:
图介绍:
- Configuration plot (plot.type = "confplot"): Plots the MDS configurations.
- 配置图(plot.type = "confplot"):绘制MDS配置。
- Residual plot (plot.type = "resplot"): Plots the normalized dissimilarities (d-hats) distances against the fitted distances.
- 残差图(plot.type = "resplot"):绘制的归一化的相异性(D-帽子)的距离相对于拟合的距离。
- Shepard diagram (plot.type = "Shepard"): Diagram with the observed dissimilarities against the fitted distances including (isotonic) regression line.
- 的谢泼德图(plot.type = "Shepard"):图(等渗)回归线相对于拟合的距离与所观察到的不同点。
- Stress decomposition plot (plot.type = "stressplot"): Plots the stress contribution in of each observation. The higher the contribution, the worse the fit.
- 应力分解图(plot.type = "stressplot"):绘制应力的贡献,各观测。较高的贡献,更糟糕的契合。
- Bubble plot (plot.type = "bubbleplot", not available for rectangular SMACOF): Combines the configuration plot with the point stress contribution. The larger the bubbles, the better the fit.
- 气泡图(plot.type = "bubbleplot",而不是可用于矩形SMACOF的的):将配置的图点应力的贡献。较大的气泡,更好的契合。
For smacofIndDiff() the residual plot, Shepard diagram, and stress plot are based on the sum of the residuals across individuals/ways. The configuration plot represents the group stimulus space (i.e., joint configurations).
对于smacofIndDiff()的残差图,谢泼德图和应力图,是基于个人/方法之间的残差的总和。配置图表示该组的刺激空间(即联合配置)。
参见----------See Also----------
plot3d.smacof
plot3d.smacof
实例----------Examples----------
## 2D plots for spherical SMACOF[#球形SMACOF的2D绘图]
data(trading)
res <- smacofSym(trading)
plot(res, plot.type = "confplot")
plot(res, plot.type = "Shepard")
plot(res, plot.type = "stressplot")
plot(res, plot.type = "resplot")
plot(res, plot.type = "bubbleplot")
## Joint configuration plot and row/column stressplots for rectangular SMACOF[#联合配置的图和为矩形SMACOF的行/列stressplots,]
data(breakfast)
res <- smacofRect(breakfast)
plot(res, plot.type = "confplot", joint = TRUE)
plot(res, plot.type = "stressplot")
plot(res, type = "p", pch = 25)
plot(res, type = "p", pch = 25, col.columns = 3, label.conf.columns = list(label = TRUE, pos = 3, col = 3), col.rows = 8, label.conf.rows = list(label = TRUE, pos = 3, col = 8))
plot(res, joint = TRUE, type = "p", pch = 25, col.columns = 4, label.conf.columns = list(label = TRUE, pos = 3, col = 4), col.rows = 8, label.conf.rows = list(label = TRUE, pos = 3, col = 8))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|