View source: R/rc.plot.histogram.R
rc.plot.histogram | R Documentation |
Add a track of histogram, barchart, or heat-map on a circos plot.
rc.plot.histogram(Data, track.id, data.col=NULL, color.col=NULL,
color.gradient=NULL, fixed.height=FALSE, track.color=NA, track.border=NULL,
polygon.border=NULL, custom.track.height=NULL, max.value=NULL)
Data |
data.frame, data to be plotted. See |
track.id |
integer, in which track to plot. |
data.col |
integer, specifying the column that contains the data for plotting. |
color.col |
integer, specifying the column that contains the color. |
color.gradient |
a vector of gradient colors. See |
fixed.height |
logical, whether to fix the histogram height which results in heat-map. |
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 |
max.value |
NULL or numeric, specifying the maximum data value for normalization. Default NULL, get max from data column. |
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.
If color.gradient
is not NULL
, color.col
is ignored and the data will be scaled to positive integers in the range of 1~length(color.gradient) to index the colors in vector color.gradient
.
For plotting stacked barcharts, use function rc.plot.barchart
instead.
Minghui Wang <m.h.wang@live.com>
rc.plot.link
, rc.plot.mHistogram
, rc.plot.barchart
#This is not to be run alone. Please see tutorial vignette("netweaver") for usage.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.