| plotLRrank | R Documentation |
Generic function for ranking LR pairs. Dispatches on the class of x:
plotLRrank.blisa accepts a blisa object and uses its
LR_results slot directly.
plotLRrank.data.frame accepts the LR_results data
frame directly.
plotLRrank(x, ...)
## S3 method for class 'blisa'
plotLRrank(x, top = 30, pt_size = 4, flip = FALSE, size_by = "auto", ...)
## S3 method for class 'data.frame'
plotLRrank(
x,
top = 30,
pt_size = 4,
flip = FALSE,
item_label = "Ligand-Receptor Pair",
size_by = NULL,
...
)
x |
A |
... |
Additional arguments passed to the relevant method. |
top |
Integer or |
pt_size |
Numeric. Point size passed to |
flip |
Logical. When |
size_by |
Character or |
item_label |
Character. Axis label for the ranked items. Defaults to
|
A ggplot object.
plotLRrank(blisa): Method for a blisa object. Extracts
LR_results and delegates to plotLRrank.data.frame.
plotLRrank(data.frame): Method for a data frame of LR results (e.g. the
LR_results slot of a blisa object).
## Not run:
# Continuing from the blisa() example:
# result <- blisa(spe, bin_size = 50, group = "cell_type")
plotLRrank(result, top = 30)
plotLRrank(result, top = 20, flip = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.