makeDataList(flowPlots)
makeDataList()所属R语言包:flowPlots
Prepare Data in a Data Frame for a Call to GroupListBoxplot()
准备在一个呼叫的数据框GroupListBoxplot(数据)
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function makes a list of data, where each item of the list is a data frame and contains data for a group. The list can be used as input for a call to GroupListBoxplot().
此功能使数据的列表,列表中的每个项目是一个数据框,并包含了一组数据。列表中可以使用输入调用GroupListBoxplot()。
用法----------Usage----------
makeDataList(theData, groupVariableName, columnsToKeep)
参数----------Arguments----------
参数:theData
data.frame containing data for 1 or more groups
数据框包含1个或多个组的数据
参数:groupVariableName
character; name of the column in theData identifying group
字符;名字列在MATLAB环境查明组
参数:columnsToKeep
numeric vector specifying the column numbers in theData to include in the list of data.
数字向量在MATLAB环境中指定的列数,包括在数据列表。
值----------Value----------
a list; each item of the list is a data frame and contains data for a group. The rows of each data frame are for subject. The cols of each data frame represent categories to be
列表,每个列表项是一个数据框,并包含了一组数据。每个数据框的行为主题。每个数据框COLS代表类别
作者(S)----------Author(s)----------
N. Hawkins, Fred Hutchinson Cancer Research Center, Seattle, WA
参见----------See Also----------
GroupListBoxplot
GroupListBoxplot
举例----------Examples----------
# Load the data[加载数据]
data(marginalDF)
marginalDataSubset = subset(marginalDF, stim=="LPS" & concGroup==3 & cell=="mDC")
# Make a data list[做一个数据列表]
dataList = makeDataList(marginalDataSubset, "group", 1:5)
# Make a plot using the data list[使用数据列表图]
GroupListBoxplot(dataList, xlabel="Cytokine", ylabel="Percent of All Cells",
xAxisLabels=c("TNFa","IL6","IL12","IFNa","AnyMarker"),
mainTitle="Stimulation = LPS and Concentration Group = 3 and Cell = mDC",
legendGroupNames=c("Adults","Neonates"), pointColor=c(2,4), testTitleCEX=.8, nCEX=.8,
pCEX=.8, legendColor=c(2,4), legendCEX=.7)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|