computeProfileData-methods(flowPlots)
computeProfileData-methods()所属R语言包:flowPlots
Method computeProfileData from Class "StackedData"
方法computeProfileData班“StackedData”
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function is a method of the StackedData class which computes the profile data which can be stored in the profileData slot of a StackedData object. This method relies on the marker data slot being assigned in the StackedData object. No computation is required. Instead, the marker combination percentages data is re-organized to be 'horizontal' rather than 'stacked' (vertical). This makes it ready for plotting via the GroupListBoxplot() function.
此功能的方法计算的个人资料数据可以存储在一个StackedData对象profileData插槽的StackedData类。这种方法依赖于标记数据被在StackedData对象分配的插槽。无需计算。相反,标记组合的百分比数据重新组织以“水平”,而非“堆叠”(垂直)。这使得通过GroupListBoxplot()函数绘制的准备。
用法----------Usage----------
computeProfileData(object, byVarNames, idVarName, percentVarName, groupVarName)
参数----------Arguments----------
参数:object
an object of the StackedData class
的StackedData类的对象
参数:byVarNames
character; the names of the variables specifying the subsets of interest in the data
字符;指定感兴趣的数据子集的变量的名称
参数:idVarName
character; the name of the id variable in the data
性格中的数据的id变量的名称
参数:percentVarName
character; the name of the variable holding the percentages to be summed when computing the pfd summary data
字符;持有的百分比计算的PFD汇总数据时,要总结的变量的名称
参数:groupVarName
character; the name of the variable specifying the group assignment in the data
字符;变量名中指定的数据组分配
值----------Value----------
data frame of profile data
配置数据的数据框
方法----------Methods----------
signature(object = "StackedData", byVarNames = "character", idVarName = "character", percentVarName = "character", groupVarName = "character") Compute the profile data.
signature(object = "StackedData", byVarNames = "character", idVarName = "character", percentVarName = "character", groupVarName = "character")计算个人资料数据。
作者(S)----------Author(s)----------
N. Hawkins, Fred Hutchinson Cancer Research Center, Seattle, WA
参见----------See Also----------
StackedData, profileData
StackedData,profileData
举例----------Examples----------
# Load stacked data[载入堆叠数据]
data(adultsNeonates)
# Create a stacked data object[创建一个堆叠的数据对象]
stackedDataObject = new("StackedData", stackedData=adultsNeonates)
# Compute the marker data and set the marker data slot[计算标记的数据和设置标记的数据槽]
markerNames = c("TNFa","IL6","IL12","IFNa")
markers = computeMarkers(markerNames,includeAllNegativeRow=TRUE)
markers(stackedDataObject) = markers
# Compute the profile percent data and set the profile percent data slot[计算轮廓%的数据和设置轮廓%的数据插槽]
byVarNames = c("stim", "concGroup", "cell")
profilePercent = computeProfileData(stackedDataObject, byVarNames, "id", "percentAll", "group")
profileData(stackedDataObject) = profilePercent
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|