heatplot: Plot heatmap for genes from goana/kegga analysis

Description Usage Arguments Value Examples

View source: R/heatplot.R

Description

modified from enrichplot

Usage

1
heatplot(path_res)

Arguments

path_res

data.frame, result of limma::goana or limma::kegga with significant genes for each pathway added by add_path_genes.

Value

ggplot object.

Examples

1
2
3
4
5
6
7
8
# plot pathways merged by revigo under inflammatory response
data(go_up1)

data_dir <- tempdir()
scrape_revigo(data_dir, go_up1)
revigo_res <- read.csv(file.path(data_dir, 'rsc.csv'), row.names = 1, stringsAsFactors = FALSE)
go_infl <- row.names(revigo_res)[revigo_res$representative == 6954]
heatplot(go_up1[go_infl, ])

alexvpickering/revigoR documentation built on March 17, 2021, 8:09 p.m.