Description Usage Arguments Value See Also Examples
This function is useful both when setting appropriate gates and when the adjustments of the compensation are done
1 2 3 4 5 6 7 8 | oneVsAllPlot(
flowObj,
yCol = "all",
nRows = 10000,
plotName = "default",
zeroTrim = TRUE,
saveResult = TRUE
)
|
flowObj |
This is the full dataset, either a flowFrame or a flowSet, that should be plotted. If it has more rows than "nRows", a subsample (with equal contributions from each sample if a flowSet) will be plotted. |
yCol |
Here, the variable to be plotted against all the others is selected. It can be either a number, the column name of interest or "all". |
nRows |
The number of rows that will be used to construct the plot. The fewer, the faster, but the resolution also decreases, naturally. Default is 100000. |
plotName |
If a name different from yCol should be used, it can be added here. |
zeroTrim |
In the case of CyTOF data, the events at zero can often be so dominant, that all other density variation is dwarfed, and thus invisible. With this command, the events that are zero in both y and x are trimmed for each x separately. |
saveResult |
Should the result be saved as a file? |
A plot with one 2D-graph for each variable that the y-variable should be plotted against.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | #' # Load uncompensated data
data(fullPanel)
# Load the spectral unmixing matrix generated with controls from the same
# experiment. These can be generated using the specMatCalc function.
data(specMat)
# Now unmix
fullPanelUnmix <- specUnmix(fullPanel, specMat)
# Transform all fluorescent channels
fullPanelTrans <- arcTrans(fullPanelUnmix,
transNames = colnames(fullPanelUnmix)[6:18])
# And now run the function. If no specific marker is selected, as in this
# case, then all markers will be plotted in a new sub-directory.
# Further, if you leave the saveResult to TRUE, a pdf will be created.
oneVsAllPlot(fullPanelTrans, yCol = "BV650_CD56", saveResult = FALSE)
# This shows that there is a compensation artifact between AF647_IgM and
# BV650_CD56, which is an expected combination to cause problems, due to the
# similar emission characteristics. It is therefore recommended to go on to
# correctUnmix function.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.