Learn R Programming

MLP (version 1.20.0)

mlpBarplot: Draw a Barplot for MLP Results

Description

Draw a Barplot for MLP Results

Usage

mlpBarplot(object, nRow = 20, barColors = NULL, main = NULL)

Arguments

object
object of class MLP
nRow
number of rows of the MLP data frame to depict in the barplot; defaults to 20.
barColors
vector of colors to use for the bars of the barplot; defaults to NULL; if NULL, three gray shades are used reflecting the proportion of tested genes of a gene set versus the total number of genes in a geneset. If the proportion exceeds 75%, the darkest shade is used; between 50 and 75% a moderately dark shade is used; below 50% a lighter gray shade is used.
main
main title; if NULL (default) "Effect of the treatment on gene sets" will be used

Value

the midpoints of all the bars are returned invisibly (using the conventions of barplot); an MLP-specific barplot is drawn to the current device;

See Also

barplot

Examples

Run this code
pathExampleMLPResult <- system.file("exampleFiles", "exampleMLPResult.rda", package = "MLP")
load(pathExampleMLPResult)
dev.new(width = 10, height = 10)
op <- par(mar = c(30, 10, 6, 2))
mlpBarplot(exampleMLPResult)
par(op)

Run the code above in your browser using DataLab