Learn R Programming

NetWeaver (version 0.0.6)

rc.plot.mHistogram: Plot Histogram or Barplot Across Chromosomes

Description

Plot histogram or barplot that overlaps with multiple chromosomes.

Usage

rc.plot.mHistogram(Data, track.id, data.col, 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)

Arguments

Data

data.frame of at least four columns. See Details.

track.id

integer, the track number for plotting.

data.col

integer or character string, specifies the column of data.

color.col

integer or character string, specifies the column of colors.

color.gradient

a vector of gradient colors.

fixed.height

logical, whether to fix the histogram height, resulting in heat-map if TRUE.

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.

custom.track.height

NULL or numeric, specifying customized track height to overwrite the default. See rc.get.params for default value.

max.value

NULL or numeric, specifying the maximum data value for normalization. Default NULL, get max from data column data.col.

Details

Data must have at least four columns: Chr1, Start1, Chr2 and End2, specifying the chromosomes and positions for the start and end points. Additional columns may be used to specify the data, color, etc. If color.gradient is not NULL, it will supersede color.col.

See Also

rc.plot.link, 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