plot_hexbin_meta_shiny: Plot of meta data of single cell data in bivariate hexagon...

Description Usage Arguments Details Value See Also Examples

View source: R/plot_hexbin_meta_shiny.R

Description

Plot of meta data of single cell data in bivariate hexagon cells as shiny instance.

Usage

1
2
3
4
5
6
7
8
9
plot_hexbin_meta_shiny(
  sce,
  col,
  action,
  min_nbins,
  max_nbins,
  dimension_reduction,
  na.rm
)

Arguments

sce

A SingleCellExperiment or Seurat-class object.

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 majority, prop_0, mode, mean and median (see plot_hexbin_meta).

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.

Details

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.

Value

An object that represents the app.

See Also

plot_hexbin_meta

Examples

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)

schex documentation built on Nov. 8, 2020, 5:56 p.m.