Description Usage Arguments Details Note Author(s) Examples
Heatmap reflecting the magnitude of estimated copy numbers relative to some pre-defined limits. Estimates may be obtained using pcf
or multipcf
, and results may be visualized over the entire genome or by chromosomes.
1 2 |
segments |
a data frame containing the segmentation results found by either |
upper.lim |
a positive numeric vector giving the upper limits(s) to be applied. The colors in the heatmap will reflect the magnitude of the estimated copy numbers relative to this limit, see details. |
lower.lim |
a negative numeric vector of same length as |
pos.unit |
the unit used to represent the probe positions. Allowed options are "mbp" (mega base pairs), "kbp" (kilo base pairs) or "bp" (base pairs). By default assumed to be "bp". |
chrom |
a numeric or character vector with chromosome number(s) to indicate which chromosome(s) is (are) to be plotted. If unspecified the whole genome is plotted. |
layout |
the vector of length two giving the number of rows and columns in the plot window. Default is |
... |
other optional graphical parameters. These include the plot arguments
|
For each sample, the segments are represented by a rectangle plotted in a color corresponding to the difference between the segment copy number value and the limits.
If the value is below lower.lim
, the color of the rectangle will equal the input in colors[1]
(default dodgerblue). If the value is above lower.lim
, but below zero, the color of the rectangle will be a nuance between the input in colors[1]
and colors[2]
(default black). The closer the value is to zero, the closer the nuance will be to colors[2]
. Similary, if the value is above upper.lim
, the color of the rectangle will equal the input in colors[3]
(default red), whereas if the value is below upper.lim
, but above zero, the color will be a nuance between the input in colors[2]
and colors[3]
. Again, the closer the value is to zero, the closer the nuance will be to colors[2]
.
Each row in the heatmap represents a sample, while probe positions are reflected along the x-axis.
This function applies par(fig)
, and is therefore not compatible with other setups for arranging multiple plots in one device such as par(mfrow,mfcol)
.
Gro Nilsen
1 2 3 4 5 6 7 8 9 10 11 | #Load lymphoma data
data(lymphoma)
#Run pcf to obtain estimated copy number values
seg <- pcf(data=lymphoma,gamma=12)
#Heatmap for entire genome, two limit values:
plotHeatmap(segments=seg,upper.lim=c(0.1,0.5),layout=c(2,1))
#Heatmap for the first 4 chromosomes:
plotHeatmap(segments=seg,upper.lim=0.1,chrom=c(1:4),layout=c(2,2))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.