Plot normalized enrichment score
Arguments
- object
Object.
- contrast
character(1). Contrast name.- collection
character(1). Gene set collection name. Typically refers toh(hallmark),c1-c7collections from MSigDb. Can obtain usingcollectionNames()onFgseaListobject.- n
integer(1)orInf. Number of gene sets (regardless of direction) to include in plot.- flip
logical(1). Flip x and y axes. Recommended for plots containing many samples.- labels
list. ggplot2 labels. Seeggplot2::labs()for details.- ...
Additional arguments.
See also
Inspired by example in Stephen Turner's DESeq to fgsea guide.
Examples
data(fgsea)
## FgseaList ====
object <- fgsea
alphaThreshold(object) <- 0.9
contrast <- contrastNames(object)[[1L]]
collection <- collectionNames(object)[[1L]]
plotNes(
object = object,
contrast = contrast,
collection = collection,
n = 10L
)