makeBarplotData(flowPlots)
makeBarplotData()所属R语言包:flowPlots
Prepare Profile Data for a Call to Barplot()
准备以Barplot检测:(简介资料)
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function takes a dataframe of profile data and prepares a matrix of data for input to barplot()
这个函数接受一个配置数据dataframe的,并准备一个数据矩阵输入到barplot()
用法----------Usage----------
makeBarplotData(profileData, profileColumns, groupVariableName)
参数----------Arguments----------
参数:profileData
dataframe of profile data, such as cell categories of cells
dataframe配置数据,如单元类别
参数:profileColumns
the columns of profileData to include in the barplot
列profileData包括在barplot的
参数:groupVariableName
the column in the dataframe containing the group info
列中包含组信息dataframe
值----------Value----------
a matrix whose rows represent different profile categories and whose columns represent different groups. Each cell in the matrix contains the mean value for the group for a given profile category. For profile data with 16 cytokine combinations for each of 2 groups, the matrix returned with have dimensions (16,2).
一个矩阵的行代表不同的文件类别,其列代表不同的群体。矩阵中的每个单元都包含一个给定的个人资料类别组的平均价值。为2组各16单元因子组合的个人资料数据,返回矩阵与尺寸(16,2)。
作者(S)----------Author(s)----------
N. Hawkins, Fred Hutchinson Cancer Research Center, Seattle, WA
参见----------See Also----------
GroupListBoxplot
GroupListBoxplot
举例----------Examples----------
data(profileDF)
profileDataSubset = subset(profileDF, stim=="LPS" & concGroup==3 & cell=="mDC")
profileColumns = 1:16
barplotData = makeBarplotData(profileDataSubset, profileColumns, groupVariableName="group")
barplotDataWithLegend = cbind(barplotData, NA, NA)
barColors = gray(0:15/15)[16:1]
barplot(barplotDataWithLegend, col=barColors, main="Stimulation = LPS
Concentration Group = 3
Cell = mDC")
legendNames = rownames(barplotData)
legend(2.75, 100, legend=legendNames[16:1], col=barColors[16:1], cex=.8, pch=20)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|