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.frame, data to be plotted. See Details.
integer, in which track to plot.
integer, specifying the column that contains the data for plotting.
integer, specifying the column that contains the color.
a vector of gradient colors. See details.
logical, whether to fix the histogram height which results in heat-map. TRUE if data.col is bar.color.
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.
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.
# 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