make_hexbin_label {schex}R Documentation

Group label plot position.

Description

Group label plot position.

Usage

make_hexbin_label(sce, col)

## S4 method for signature 'Seurat'
make_hexbin_label(sce, col)

## S4 method for signature 'SingleCellExperiment'
make_hexbin_label(sce, col)

Arguments

sce

A SingleCellExperiment or Seurat-class object.

col

The name referring to one column in meta data for which the label position on the plot is calculated for every level. The chosen column needs to be a factor.

Value

A dataframe.

Methods (by class)

Examples

#' # For Seurat object
library(Seurat)
data("pbmc_small")
pbmc_small <- make_hexbin(pbmc_small, 10, dimension_reduction = "PCA")
make_hexbin_label(pbmc_small, col="RNA_snn_res.1")

[Package schex version 1.0.55 Index]