cellSigAnalysisPlot: The barplot of enrichment functions

Description Usage Arguments Value Examples

View source: R/functions.R

Description

The barplot of enrichment functions

Usage

1
2
cellSigAnalysisPlot(chart, prefix = "", type = NULL, fill = "steelblue",
  outpath = getOption("opm.outpath"), ...)

Arguments

chart

data frame, the functional annotation chart

prefix

character, the prefix of figure name

type

selected domains from chart, e.g. BP.

fill

color of the bars

outpath

directory of output figures, default: getOption("opm.outpath")

...

other arguments for graphical devices

Value

Invisibly the ggplot2 function for barplot

Examples

1
2
3
4
5
6
7
8
data(demoCell)
genemap <- read.csv(file.path(system.file("Test", package = "OperaMate"),
"demoData", "genemap.csv"), stringsAsFactors = FALSE)
chart <- cellSigAnalysis(oneCell, genemap, organism = "mmusculus")
op <- options("device")
options("device" = "png")
cellSigAnalysisPlot(chart, type = "BP", outpath = tempdir())
options(op)

OperaMate documentation built on Nov. 17, 2017, 1:55 p.m.