Description Usage Arguments Value
Plot and print absolute density or density percentages of cell types in entire FOVs
1 2 3 4 5 6 | plotTotalFOVMarkerDensity(mDen, densityMarkers, clrs, plotTitle = "",
cellTypeLabels = NULL, sampleOrder = NULL, yMax = NULL,
separateLegend = FALSE, printLegend = TRUE, legendOnly = FALSE,
xCol = "Sample", yCol = "Total", pct = FALSE, groupBy = NULL,
yAxisTitle = "Density (counts/mm^2)", xAxisTitle = "Sample",
annotationCols = NULL)
|
mDen |
tibble containing density data |
densityMarkers |
a vector of markers for which density is to be plotted |
clrs |
a list of colors, named by either by CellType from mDen tibble, or cellTypeLabels if specified |
plotTitle |
title of plot |
cellTypeLabels |
a list of labels for each marker being plotted, if different than CellType in mDen tibble; default: NULL |
sampleOrder |
order in which samples should appear on the plot; default=NULL |
yMax |
if specified, y axis will span from zero to this number; default=NULL |
separateLegend |
logical; when TRUE, legend will be separated from plot. if printLegend is TRUE, will be printed first, before plot. if printLegend is FALSE, will not be printed at all; default=FALSE |
printLegend |
logical; when separateLegend is TRUE, if printLegend is FALSE, no legend will be printed at all; default=TRUE |
legendOnly |
logical; when separateLegend is TRUE, if legendOnly is TRUE, only legend will be printed, no plot |
yCol |
character string specifying which of the columns in mDen is to be used for y values; default="Density" |
pct |
logical; values being plotted are percentages; default=FALSE |
yAxisTitle |
character string to be used as title of the y axis |
xAxisTitle |
character string to be used as title of the x axis |
annotationCols |
vector of column names to use for annotation |
plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.