oldPicketplot(Heatplus)
oldPicketplot()所属R语言包:Heatplus
Barplots for Several Binary Variables
barplots的几个二进制变量
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Display one or more binary variables by using black bars for presence/validity of a condition, empty space for absence/invalidity, and an extra color for missing values. Additionally, an index plot for one interval scaled variable can be added, possibly with a smoothing function (OLD version, to be deprecated).
显示一个或多个二进制变量/有效性存在的条件,空缺席/无效的,额外的颜色和遗漏值利用黑网吧。此外,可以为一个区间规模变量指数积增加,可能与平滑功能(老版本,被废弃)。
This routine is primarily intended for augmenting heatmaps. It might be useful in other contexts, but misses most frills for using it comfortably.
该例程主要用于充实热图。在其他情况下,它可能是有用的,但错过最朴实无华,使用舒适。
用法----------Usage----------
oldPicketplot(x, covariate = NULL, grp = NULL, grpcol, grplabel = NULL,
add = FALSE, control = list())
参数----------Arguments----------
参数:x
a matrix or data frame containing the data.
矩阵或数据框包含的数据。
参数:covariate
the index of the column in x that contains the interval scaled variable, if any.
x,列的索引包含的时间间隔规模变量,如果有的话。
参数:grp
cluster indices for the rows of x, used for assigning background color.
聚类为x行的指标,用于指定背景颜色。
参数:grpcol
colors corresponding to the clusters.
聚类相应的颜色。
参数:grplabel
cluster names.
聚类名称。
参数:add
logical indicating whether to start a new plot, or whether to add the plot to the existing one.
逻辑表示是否启动一个新的图,或是否添加图现有。
参数:control
a list of parameters controlling the appearance of the plot, see Details.
控制图的外观参数列表,请参阅详情。
Details
详情----------Details----------
The following named list elements can be set to change the appearance of the plot:
可以设置以下的命名列表中的元素,改变图的外观:
boxw the relative width of a marking box.
boxw标记框的相对宽度。
boxh the relative height of a marking box.
boxh标记框的相对高度。
hbuff the horizontal separation around marking boxes; equals half the
hbuff周围标记盒的水平分离;等于一半
vbuff ditto for vertical separation.
垂直分离vbuff同上。
span passed on to loess used for the smoothing curve.
跨度传递loess平滑曲线。
nacol color for missing values of binary variables.
nacol颜色缺少的二元变量的值。
degree if 0, no smoothing line is drawn; otherwise passed on to
如果为0度,没有平滑线绘制,否则传递到
cex.label the character size for grplabel.
cex.labelgrplabel字符大小。
注意----------Note----------
The plot looks like a more or less derelict picket fence, and 'picketplot' sounds somewhat like the 'pocketplot' used in geostatistics.
图看起来就像更多或更少废弃的栅栏,“picketplot”听起来有点像“pocketplot统计学。
作者(S)----------Author(s)----------
Alexander Ploner <Alexander.Ploner@ki.se>
参见----------See Also----------
heatmap_plus
heatmap_plus
举例----------Examples----------
# without covariate[没有协变量]
mm = cbind(sample(0:1, 42, rep=TRUE), sample(0:1, 42, rep=TRUE))
mm[sample(42, 5), 1] = NA
oldPicketplot(mm)
# with clustering[与聚类]
cl = rep(1:3, c(10,22,10))
cn = c("Cluster I","Cluster II","Cluster III")
cc = c("lightblue","lightgreen","lightpink") # windows palette[Windows调色板]
oldPicketplot(mm, grp=cl, grplabel=cn, grpcol=cc)
# add a covariate; setting the colnames makes the variable labels[添加协;设置的colnames使变量标签]
mm = cbind(mm, rnorm(42) + cl/2)
colnames(mm) = c("State A","State B", "X")
oldPicketplot(mm, covariate=3,grp=cl, grplabel=cn, grpcol=cc)
# using extra controls[使用额外的控制]
oldPicketplot(mm, covariate=3,grp=cl, grplabel=cn, grpcol=cc, control=list(nacol="white", degree=0))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|