Description Usage Arguments Details Value See Also Examples
View source: R/plot_hexbin_feature_shiny.R
Plot of feature expression of single cell data in bivariate hexagon cells as shiny instance.
1 2 3 4 5 6 7 8 9 10 | plot_hexbin_feature_shiny(
sce,
mod = "RNA",
type,
feature,
action,
min_nbins,
max_nbins,
dimension_reduction
)
|
sce |
A |
mod |
A string referring to the name of the modality used for plotting.
For RNA modality use "RNA". For other modalities use name of alternative
object for the |
type |
A string referring to the type of assay in the
|
feature |
A string referring to the name of one feature. |
action |
A strings pecifying 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. |
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 below.
To access the data that has been integrated in the
Seurat-class
object specifiy mod="integrated"
.
An object that represents the app.
1 2 3 4 5 6 7 8 9 | # For Seurat object
## Not run:
library(Seurat)
data("pbmc_small")
plot_hexbin_feature_shiny(pbmc_small, type="counts", feature="TALDO1",
action="median", min_nbins=2, max_nbins=10, dimension_reduction="PCA",
mod="RNA")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.