makeDataList: Prepare Data in a Data Frame for a Call to GroupListBoxplot()

Description Usage Arguments Value Author(s) See Also Examples

View source: R/pkg.HelperFcns.R

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().

Usage

1
    makeDataList(theData, groupVariableName, columnsToKeep)

Arguments

theData

data.frame containing data for 1 or more groups

groupVariableName

character; name of the column in theData identifying group

columnsToKeep

numeric vector specifying the column numbers in theData to include in the list of data.

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 plotted on the x-axis.

Author(s)

N. Hawkins, Fred Hutchinson Cancer Research Center, Seattle, WA

See Also

GroupListBoxplot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# 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)

flowPlots documentation built on Nov. 8, 2020, 7:54 p.m.