plotDAbeeswarm | R Documentation |
This function constructs a beeswarm plot using the ggplot engine to visualise the distribution of log fold changes across neighbourhood annotations.
plotDAbeeswarm(da.res, group.by = NULL, alpha = 0.1, subset.nhoods = NULL)
da.res |
a data.frame of DA testing results |
group.by |
a character scalar determining which column of |
alpha |
significance level for Spatial FDR (default: 0.1) |
subset.nhoods |
A logical, integer or character vector indicating a subset of nhoods to show in plot (default: NULL, no subsetting) |
The group.by variable will be coerced to a factor. If you want the variables in group.by to be in a given order make sure you set the column to a factor with the levels in the right order before running the function.
a ggplot
object
Emma Dann
NULL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.