ridgePlot: Generate a ridge plot to examine enrichment distributions

View source: R/plot.R

ridgePlotR Documentation

Generate a ridge plot to examine enrichment distributions

Description

This function allows to the user to generate the distribution of enrichment across groups with a ridge plot.

Usage

ridgePlot(
  object,
  features,
  group_by = NULL,
  color = NULL,
  split.by = NULL,
  rug = TRUE,
  nrow = NULL,
  ncol = NULL,
  basesize = 12
)

Arguments

object

A GSVA objectect or data.frame

features

A vector of features to plot

group_by

Name of one or more metadata columns to group (color) cells by or a vector to show the group

color

Colors to use for identity class plotting

split.by

Factor to split the groups by

rug

Adds a rug representation or not

nrow

Number of rows

ncol

Number of columns

basesize

base font size, given in pt

Author(s)

Kai Guo

Examples

set.seed(123)
library(scGSVA)
data(pbmc_small)
hsko<-buildAnnot(species="human",keytype="SYMBOL",anntype="KEGG")
res<-scgsva(pbmc_small,hsko)
ridgePlot(res,features="Wnt.signaling.pathway")

guokai8/scGSVA documentation built on Nov. 15, 2024, 12:54 a.m.