rc.plot.barpchart: Bar Plots

Description Usage Arguments Details Author(s) See Also Examples

Description

Add a track of barcharts.

Usage

1
2
3
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.

Author(s)

Minghui Wang <m.h.wang@live.com>

See Also

rc.plot.link, rc.plot.mHistogram

Examples

1
#This is not to be run alone. Please see tutorial vignette("netweaver") for usage.

Example output



NetWeaver documentation built on May 2, 2019, 11:26 a.m.