Description Usage Arguments Value Author(s) See Also Examples
Create a boxplot for a given gene. The boxplot displays the expression values (y-axis) by groupss (x-axis). The raw data are superimposed as dots, jittered for readability of the plot. Optionally, the dots can be colored by another variable.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
probesetId |
The probeset ID. These should be stored in the |
geneSymbol |
The gene symbol. These should be stored in the column |
object |
ExpressionSet object for the experiment |
groups |
String containing the name of the grouping variable. This should be a
the name of a column in the |
main |
Main title on top of the graph |
colvec |
Vector of colors to be used for the groups. If not specified, the default colors of
|
colgroups |
String containing the name of the variable to color the superimposed dots.
This should be a the name of a column in the |
probe2gene |
Boolean indicating whether the probeset should be translated to a gene symbol (used for the default title of the plot) |
addLegend |
Boolean indicating whether a legend for the colors of the dots should be added. |
legendPos |
Specify where the legend should be placed. Typically either |
... |
Possibility to add extra plot options. See |
A plot is drawn to the current device and
probesetId
are returned invisibly.
Willem Talloen
1 2 3 4 5 6 7 8 9 10 11 | # simulated data set
esSim <- simulateData()
boxPlot(probesetId = 'Gene.1', object = esSim, groups = 'type', addLegend = FALSE)
# ALL data set
if (require(ALL)){
data(ALL, package = "ALL")
ALL <- addGeneInfo(ALL)
ALL$BTtype <- as.factor(substr(ALL$BT,0,1))
boxPlot(geneSymbol = 'HLA-DPB1', object = ALL, boxwex = 0.3,
groups = 'BTtype', colgroups = 'BT', legendPos='topright')
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.