Description Usage Arguments Details Value See Also Examples
View source: R/plot_hexbin_meta_shiny.R
Plot of meta data of single cell data in bivariate hexagon cells as shiny instance.
1 2 3 4 5 6 7 8 9 | plot_hexbin_meta_shiny(
sce,
col,
action,
min_nbins,
max_nbins,
dimension_reduction,
na.rm
)
|
sce |
A |
col |
A string referring to the name of one column in the meta data of sce by which to colour the hexagons. |
action |
A string specifying how meta data of observations in
binned hexagon cells are to be summarized. Possible actions are
|
min_nbins |
The miniumum number of bins partitioning the range of the first component of the chosen dimension reduction. |
max_nbins |
The miniumum number of bins partitioning the range of the first component of the chosen dimension reduction. |
dimension_reduction |
A string indicating the reduced dimension result to calculate hexagon cell representation of. |
na.rm |
Logical indicating whether NA values should be removed. |
This function opens a shiny instance, which allows to investigate the effect of the resolution parameter. The user can change the resolution using the slider. Each hexagon is clickable, which will plot the observations in the chosen hexagons in a histograms/bar plot below.
An object that represents the app.
1 2 3 4 5 6 7 8 | # For Seurat object
## Not run:
library(Seurat)
data("pbmc_small")
plot_hexbin_meta_shiny(pbmc_small, col="RNA_snn_res.1", action="majority",
min_nbins=2, max_nbins=10, dimension_reduction="PCA")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.