geom_gseaGradient: GSEA color gradient for ggplot2

View source: R/geom_gseaGradient.R

geom_gseaGradientR Documentation

GSEA color gradient for ggplot2

Description

Imports: ggplot2

Usage

geom_gseaGradient(df, ...)

Arguments

df

data.frame, calculated by the function gseaCurve

...

Other arguments passed on to layer(). These are often aesthetics, used to set an aesthetic to a fixed value, like colour = "red" or size = 3. They may also be parameters to the paired geom/stat.

Details

uses the ggplot2::layer function, with geom="rect"

Value

a ggplot layer that can be added to a ggplot object

Examples

library(gggsea)
library(ggplot)

curve <- gseaCurve(myRankedlist, mySetlist)
ggplot() + geom_gseaGradient(curve) + theme_gsea()


NicolasH2/gggsea documentation built on Jan. 28, 2024, 7:25 p.m.