rc.plot.barchart {NetWeaver} | R Documentation |
Bar Plots
Description
Add a track of barcharts.
Usage
rc.plot.barchart(Data, track.id, data.col, color.col=NULL, bar.color=NULL,
track.color=NA, track.border=NULL, polygon.border=NULL,
custom.track.height=NULL, ratio=FALSE)
Arguments
Data |
data.frame, data to be plotted. See |
track.id |
integer, in which track to plot. |
data.col |
integer, specifying the column(s) that contain the data for plotting. A stacked barchart is created if there are multiple columns of data. |
color.col |
integer, specifying the column that contains the color. Only used when there is only one data column. |
bar.color |
a vector of colors for the bars or bar components. By default, |
track.color |
NA or color code for the track background. |
track.border |
the color to draw the track border. Use |
polygon.border |
the color to draw the polygon border. See explanation for |
custom.track.height |
NULL or numeric, specifying customized track height to overwrite the default. See |
ratio |
logical, specifying whether the data values in each row should be converted to ratios. Used only for stacked barchart. |
Details
Data
must have at least three columns. The first three columns must be named as Chr
, Start
and End
, specifying the chromosomes and positions for the start and end points of the links. Additional columns can be used to specify data and color.
rc.plot.histogram
can also be used for plotting barcharts except stacked barchart.
Author(s)
Minghui Wang <m.h.wang@live.com>
See Also
rc.plot.link
, rc.plot.mHistogram
Examples
#This is not to be run alone. Please see tutorial vignette("netweaver") for usage.