plot.annHeatmap: Plotting method for annotated heatmaps

Description Usage Arguments Details Value See Also Examples

Description

Plotting method for annotated heatmaps

Usage

1
2
    ## S3 method for class 'annHeatmap'
plot(x, widths, heights, ...)

Arguments

x

an object of class annHeatmap

widths

a numerical vector giving the widths of the sub-plots currently defined

heights

a numerical vector giving the heights of the sub-plots currently defined

...

extra graphical parameters, currently ignored

Details

This function displays an annotated heatmap object that has been previously generated by annHeatmap2 or on of its wrappers. The arguments widths and heights work as in layout.

Value

x, invisibly returned. If widths or heights have been specified, they overwrite the corresponding items x$layout$width and x$layout$height in x.

See Also

annHeatmap2, heatmapLayout, layout

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
    ## Define the map
    require(Biobase)
    data(sample.ExpressionSet)
    ex1 = sample.ExpressionSet[51:85,]
    map1 = annHeatmap2(exprs(ex1), ann=list(Col=list(data=pData(ex1))),
                   cluster=list(Col=list(cuth=3000)))
    
    ## Plot it               
    plot(map1)
    
    ## More heatmap, smaller dendrogram/annotation
    map2 = plot(map1, heights = c(1,6,1))
    
    ## Compare layout before/after
    with(map1$layout, layout(plot, width, height))
    layout.show(4)
    with(map2$layout, layout(plot, width, height))
    layout.show(4)


Search within the Heatplus package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.