| plotHotspots | R Documentation |
Generic function. Plots each bin coloured by significance status: empty, non-significant, or significant hotspot (continuous gradient of -log10 p-value or 1 - p-value).
plotHotspots(x, ...)
## S3 method for class 'blisa'
plotHotspots(
x,
index = 1,
ligand = NULL,
receptor = NULL,
as_points = FALSE,
size = 1.5,
background = NULL,
log_pval = TRUE,
p_cutoff = NULL,
spots = NULL,
spot_pval = NULL,
title = NULL,
...
)
x |
A |
... |
Additional arguments passed to the method. |
index |
Integer. Row index into |
ligand |
Character. Ligand gene symbol. When both |
receptor |
Character. Receptor gene symbol. Must be supplied together
with |
as_points |
Logical. If |
size |
Numeric. Point size when |
background |
A |
log_pval |
Logical. If |
p_cutoff |
Numeric or |
spots |
Integer vector or |
spot_pval |
Numeric vector. P-values for |
title |
Character or |
A ggplot object.
plotHotspots(blisa): Method for a blisa object.
## Not run:
# Continuing from the blisa() example:
# result <- blisa(spe, bin_size = 50, group = "cell_type")
plotHotspots(result, index = 1)
plotHotspots(result, index = 1, log_pval = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.