View source: R/rc.plot.heatmap.R
rc.plot.heatmap | R Documentation |
Add multiple tracks of heat-map on a circos plot.
rc.plot.heatmap(Data, track.id, color.gradient=NULL,
track.color=NA, track.border=NULL, polygon.border=NULL)
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 |
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
is NULL
, the input Data
must be a matrix of colors or anything that can be converted to colors.
Minghui Wang <m.h.wang@live.com>
rc.plot.histogram
#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.