R/plot_features.R

Defines functions plot_features

Documented in plot_features

#' some equivalents to Seurat standards, with or without velocity vectors 
#' 
#' Mostly for joint density plots via Nebulosa with velocity overlays.
#' 
#' @param txis      a SingleCellExperiment
#' @param features  names of features (rows) to plot
#' @param joint     for multiple features, plot joint density? (TRUE)
#' @param pal       what palette to use? ("inferno", because it looks nice)
#' @param ...       other arguments for Nebulosa::plot_density
#'
#' @import SingleCellExperiment
#' @importFrom Nebulosa plot_density
#'
#' @export
plot_features <- function(txis, features, joint=TRUE, pal="inferno", ...) {

  Nebulosa::plot_density(txis, features, joint=joint, pal=pal, ...)

}
trichelab/velocessor documentation built on Jan. 5, 2022, 6:27 p.m.