feature_hist: Make ggplot2-based histograms of Seurat features

View source: R/plotting.R

feature_histR Documentation

Make ggplot2-based histograms of Seurat features

Description

Make ggplot2-based histograms of Seurat features

Usage

feature_hist(sobject, features, cutoff_table = NULL, n_x_breaks = 10)

Arguments

sobject

Seurat object

features

Features to plot

cutoff_table

Table of cutoffs to plot for each feature This table should have columns named "feature", "min_val" and "max_val" where "feature" matches each element of the "features" argument, and "min_val" and"max_val" are numeric values. This argument is optional.

n_x_breaks

Number of x-axis breaks to use

Value

A ggplot object

Examples

## Not run: 
feature_hist(SeuratObject::pbmc_small,
             features = c("nFeature_RNA", "nCount_RNA"))

## End(Not run)

kidcancerlab/rrrSingleCellUtils documentation built on April 17, 2025, 5:10 p.m.