plot_hexbin_meta_shiny {schex} | R Documentation

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

### Description

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

### Usage

    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

    # 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)

[Package schex version 1.8.0 Index]