Learn R Programming

NetRep (version 1.0.2)

plotMultiBar: Plot multiple horizontal bar plots

Description

Plot multiple horizontal bar plots

Usage

plotMultiBar(lengths, lengths.lim, cols, bar.width = 1, drawBorders = FALSE, main = "", main.line = 1, na.col = "#bdbdbd", yaxt = TRUE, plotModuleNames = TRUE, yaxt.line = 0, maxt.line = 2.5, xaxt.line = 0, xaxt.tck = -0.025, xlab = "", xlab.line = 2.5, cex.modules = 0.7, lwd = 2, dryRun = FALSE)

Arguments

lengths
a matrix whose columns contain the lengths of each bar for the given property (e.g. each column should be a module, or phenotype).
lengths.lim
a list of limits for the lengths axes.
cols
a matrix of colors for each bar.
bar.width
value between 0 and 1 controlling the proportion of space taken by each bar.
drawBorders
logical; if TRUE a border is drawn around each bar.
main
title for the plot
main.line
the number of lines into the top margin at which the plot title will be drawn.
na.col
color of missing values to plot.
yaxt
logical; If TRUE, the rownames of heights will be rendered to the left of the bars.
plotModuleNames
logical; if TRUE the names of the modules are plotted along the x axis.
yaxt.line
the number of lines into the margin at which the y axis labels will be drawn.
maxt.line
the number of lines into the margin at which the module labels will be drawn.
xaxt.line
the number of lines into the margin at which the x axis labels will be drawn
xaxt.tck
the size of the x-axis ticks.
xlab
x axis label
xlab.line
the number of lines into the bottom margin at which the x axis label will be drawn.
cex.modules
relative size of module names.
lwd
line width for borders.
dryRun
logical; if TRUE only the axes and borders will be drawn.