Learn R Programming

OperaMate (version 1.4.0)

cellSigAnalysisPlot: The barplot of enrichment functions

Description

The barplot of enrichment functions

Usage

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

Run this code
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)

Run the code above in your browser using DataLab