cgapsPlot | R Documentation |
Function to plot each pattern of the pattern matrix from a cogapsResult and color by cell classifier information to identify which patterns identify which cell classes.
cgapsPlot(
cgaps_result,
sample.classifier,
cols = NULL,
sort = TRUE,
patterns = NULL,
matrix = FALSE,
...
)
cgaps_result |
CoGAPSResult object from a CoGAPS run or the pattern matrix (matrix must be set equal to TRUE in the latter case) |
sample.classifier |
factor of sample classifications for all cells for the data to be plotted by (e.g. celltypes) |
cols |
vector of colors to be used for the cell classes; should have the same number of colors as levels of the sample.classifier factor. If left null a list of colors is produced |
sort |
TRUE if samples will be sorted according to sample.classifier prior to plotting |
patterns |
numerical vector of patterns to be plotted; if null all patterns are plotted |
matrix |
if false cgaps_result is interpreted as a CoGAPSResult object, if true it is interpreted as the pattern matrix |
... |
addition arguments to plot function |
Series of plots of pattern matrix patterns colored by cell classifications
data("schepCogapsResult")
data(schepCellTypes)
cgapsPlot(schepCogapsResult, schepCellTypes)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.