Learn R Programming

NetWeaver (version 0.0.6)

rc.plot.heatmap: 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 Details.

track.id

integer, starting track id.

color.gradient

a vector of gradient colors. See details.

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.

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.

See Also

rc.plot.histogram

Examples

Run this code
# 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