plotNhoodExpressionDA | R Documentation |
Plots the average gene expression in neighbourhoods, sorted by DA fold-change
Plots the average gene expression in neighbourhood groups
plotNhoodExpressionDA(
x,
da.res,
features,
alpha = 0.1,
subset.nhoods = NULL,
cluster_features = FALSE,
assay = "logcounts",
scale_to_1 = FALSE,
show_rownames = TRUE,
highlight_features = NULL
)
plotNhoodExpressionGroups(
x,
da.res,
features,
alpha = 0.1,
subset.nhoods = NULL,
cluster_features = FALSE,
assay = "logcounts",
scale_to_1 = FALSE,
show_rownames = TRUE,
highlight_features = NULL,
grid.space = "free"
)
x |
A |
da.res |
a data.frame of DA testing results |
features |
a character vector of features to plot (they must be in rownames(x)) |
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) |
cluster_features |
logical indicating whether features should be clustered with hierarchical clustering.
If FALSE then the order in |
assay |
A character scalar that describes the assay slot to use for calculating neighbourhood expression.
(default: logcounts)
Of note: neighbourhood expression will be computed only if the requested features are not in the |
scale_to_1 |
A logical scalar to re-scale gene expression values between 0 and 1 for visualisation. |
show_rownames |
A logical scalar whether to plot rownames or not. Generally useful to set this to
|
highlight_features |
A character vector of feature names that should be highlighted on the right side of
the heatmap. Generally useful in conjunction to |
grid.space |
a character setting the |
a ggplot
object
a ggplot
object
Emma Dann
NULL
NULL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.