plot.MCRestimate(MCRestimate)
plot.MCRestimate()所属R语言包:MCRestimate
Plot method for a objects of class MCRestimate
图法类MCRestimate的A对象
译者:生物统计家园网 机器人LoveR
描述----------Description----------
plot.MCRestimate visualizes a 'vote matrix'. A 'vote matrix' is the result of a classification procedure. For every sample (=row) i and every class (=column) j the matrix element [i,j] is the probability or frequency the
plot.MCRestimate可视化“表决矩阵”。一个表决矩阵“是一个分类过程的结果。对于每一个样本(行),我和每一个类(列)j的矩阵元[I,j]是的概率或频率
用法----------Usage----------
## S3 method for class 'MCRestimate'
plot(x,
class.factor=NULL,
rownames.from.object=FALSE,
sample.order=TRUE,
legend=FALSE,
mypalette=NULL,
shading=NULL,
xlab="Sample ID",
ylab="Frequency of correct classification",
参数----------Arguments----------
参数:x
Object of S3 class MCRestimate or a matrix
S3类MCRestimate或矩阵对象
参数:class.factor
Factor. Its length must match the number of rows in x and the levels must be the same as the colnames in x. If x is of class MCRestimate this argument will be ignored.
因素。它的长度必须匹配行x的数量和水平,必须是相同的作为x的colnames。 x如果类MCRestimate此参数将被忽略。
参数:rownames.from.object
Logical. If TRUE then the rownames of the matrix or the sample names of MCRestimate in x are used as labels for the x-axis
逻辑。如果是TRUE,则矩阵或样本名rownames MCRestimatex作为x轴的标签
参数:sample.order
Logical. If TRUE then the samples are ordered by class membership
逻辑。如果是TRUE,则样本下令类成员
参数:legend
Logical. If TRUE then there will be a small legend in the output
逻辑。如果为TRUE,那么将在输出的小传说
参数:mypalette
vector with length equal to the number of classes. The vector specifies the color for the bar representing the classes. If 'NULL' colors chosen by the author are used.
向量长度相等的班级数目。向量指定的颜色为代表的类的条形。如果使用“NULL”的作者选择颜色。
参数:shading
the density of shading lines for the rectangles that indicate the groups, in lines per inch. The default value of 'NULL' means that no shading lines are drawn.
矩形表示每英寸的行组,遮光线的密度。默认值“NULL”是指没有阴影线绘制。
参数:xlab
Character
字符
参数:ylab
Character
字符
参数:cex.axis
numeric
数字
参数:...
Further arguments that are passed on to plot.default
进一步传递到plot.default的参数
值----------Value----------
The function is called for its side effect, creating a plot on the
函数被调用它的副作用,对图
作者(S)----------Author(s)----------
Markus Ruschhaupt <a href="mailto:m.ruschhaupt@dkfz.de">mailto:m.ruschhaupt@dkfz.de</a>
参见----------See Also----------
MCRestimate
MCRestimate
举例----------Examples----------
x <- c(0.5, 0.3, 0.7, 0.3, 0.8, 0.2, 0.3)
mat2 <- cbind(x, 1-x)
fac2 <- factor(c("low", rep("high", 3), rep("low", 3)))
colnames(mat2) <- levels(fac2)
mat3 <- cbind(x/3, 2*x/3, 1-x)
fac3 <- factor(c(rep("high", 3), rep("intermediate", 2), rep("low", 2)))
colnames(mat3) <- levels(fac3)
if (interactive()) {
x11(width=9, height=9)
par(mfrow=c(3,1))}
plot.MCRestimate(mat2, fac2)
plot.MCRestimate(mat2, fac2, sample.order=FALSE)
plot.MCRestimate(mat3, fac3)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|