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

View source: R/All-functions.R

plot_RESR Documentation

Plots all the RES stored in a GSEA_run output.

Description

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

Usage

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

data('GSEA.result','log2.FC',package = 'TFEA.ChIP')
plot_RES(GSEA.result, log2.FC, TF = c('E2F4',"E2F1"),
    Accession=c('ENCSR000DYY.E2F4.GM12878',
    'ENCSR000EVJ.E2F1.HeLa-S3'))

LauraPS1/TFEA.ChIP documentation built on April 21, 2023, 7:29 a.m.