Add a track of barcharts.
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)
data.frame, data to be plotted. See Details
.
integer, in which track to plot.
integer, specifying the column(s) that contain the data for plotting. A stacked barchart is created if there are multiple columns of data.
integer, specifying the column that contains the color. Only used when there is only one data column.
a vector of colors for the bars or bar components. By default, grey
is used if there is one data column, and a gamma-corrected grey palette if there are multiple columns of data.
NA or color code for the track background.
the color to draw the track border. Use NA
to omit borders.
the color to draw the polygon border. See explanation for polygon
.
NULL or numeric, specifying customized track height to overwrite the default. See rc.get.params
for default value.
logical, specifying whether the data values in each row should be converted to ratios. Used only for stacked barchart.
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.
# NOT RUN {
#This is not to be run alone. Please see tutorial vignette("netweaver") for usage.
# }
Run the code above in your browser using DataLab