plot_RES: Plots all the RES stored in a GSEA_run output.

Description Usage Arguments Value Examples

View source: R/All-functions.R

Description

Function to plot all the RES stored in a GSEA_run output.

Usage

1
2
plot_RES(GSEA_result, LFC, plot_title = NULL, line.colors = NULL,
  line.styles = NULL, Accession = NULL, TF = NULL)

Arguments

GSEA_result

Returned by GSEA_run

LFC

Vector with log2(Fold Change) of every gene that has an Entrez ID. Arranged from higher to lower.

plot_title

(Optional) Title for the plot.

line.colors

(Optional) Vector of colors for each line.

line.styles

(Optional) Vector of line styles for each line ('solid'/'dash'/'longdash').

Accession

(Optional) restricts plot to the indicated list dataset IDs.

TF

(Optional) restricts plot to the indicated list transcription factor names.

Value

Plotly object with a line plot -running sums- and a heatmap -log2(fold change) bar-.

Examples

1
2
3
data('GSEA.result','log2.FC',package = 'TFEA.ChIP')
plot_RES(GSEA.result,log2.FC,TF=c('STAT1'),
    Accession=c('GSM2390642','wgEncodeEH002867'))

TFEA.ChIP documentation built on Nov. 8, 2020, 5:05 p.m.