| rc.plot.heatmap {NetWeaver} | R Documentation |
Plot Heat-map
Description
Add multiple tracks of heat-map on a circos plot.
Usage
rc.plot.heatmap(Data, track.id, color.gradient=NULL,
track.color=NA, track.border=NULL, polygon.border=NULL)
Arguments
Data |
matrix, data to be plotted. See |
track.id |
integer, starting track id. |
color.gradient |
a vector of gradient colors. See |
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 |
Details
This function employs rc.plot.histogram to plot heat-map. Every row of Data will be plotted as heat-map in one track. The column names of Data must be the chromosome ids.
If color.gradient is not NULL, the data will be scaled to positive integers in the range of 1~length(color.gradient) to index the colors in vector color.gradient. If color.gradient isNULL, the input Data must be a matrix of colors or anything that can be converted to colors.
Author(s)
Minghui Wang <m.h.wang@live.com>
See Also
Examples
#This is not to be run alone. Please see tutorial vignette("netweaver") for usage.