Learn R Programming

NetWeaver (version 0.0.6)

rc.plot.barchart: 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 Details.

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, grey is used if there is one data column, and a gamma-corrected grey palette if there are multiple columns of data.

track.color

NA or color code for the track background.

track.border

the color to draw the track border. Use NA to omit borders.

polygon.border

the color to draw the polygon border. See explanation for polygon.

custom.track.height

NULL or numeric, specifying customized track height to overwrite the default. See rc.get.params for default value.

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.

See Also

rc.plot.link, rc.plot.mHistogram

Examples

Run this code
# 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