Learn R Programming

NetRep (version 1.0.2)

plotBar: Custom bar plot function

Description

Plot bars around 0

Usage

plotBar(heights, heights.lim, mas, cols, bar.width = 1, drawBorders = FALSE, na.col = "#bdbdbd", xaxt = TRUE, plotModuleNames = TRUE, main = "", main.line = 0, xaxt.line = -0.5, yaxt.line = 0, yaxt.tck = -0.15, maxt.line = 3, ylab = "", ylab.line = 2.5, lwd = 2, dryRun = FALSE)

Arguments

heights
heights of the bars.
heights.lim
limits of the height axis.
mas
ordered subset of the moduleAssignments vector
cols
colors of 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.
na.col
color of missing values to plot.
xaxt
logical; If TRUE, the names of heights will be rendered underneath the bar chart
plotModuleNames
logical; if TRUE the names of the modules are plotted along the x axis.
main
title for the plot.
main.line
the number of lines into the top margin at which the plot title will be drawn.
xaxt.line
the number of lines into the margin at which the x axis labels will be drawn.
yaxt.line
the number of lines into the margin at which the y axis tick labels will be drawn.
yaxt.tck
the size of the y-axis tick marks.
maxt.line
the number of lines into the margin at which the module names will be drawn.
ylab
label for the y axis
ylab.line
the number of lines into the left margin at which the y axis label will be drawn.
lwd
line width for borders.
dryRun
logical; if TRUE only the axes and borders will be drawn.