heatShape {DNAshapeR} | R Documentation

## Plot heatmap of DNA shape features

### Description

Plot heatmap of DNA shape features

### Usage

    heatShape(shapeMatrix, nBins, ordRow = NULL, useRaster = TRUE, ... )

### Arguments

`shapeMatrix` | A matrix containing DNAshape prediction results.
`nBins` | An integer specifying the number of equally-sized bins in which shape predictions should be aggregated. Summarized predictions can be visualized by setting nBins=1.
`ordRow` | A numeric vector (of the same length as the number of rows of shapeMatrix) defining the permutation of the rows of shapeMatrix to be used for plotting. Default to NULL, i.e. rows are ordered by coefficients of variation.
`useRaster` | Logical, if TRUE a bitmap raster is used to plot the image instead of polygons (see ?graphics::image for details).
`...` | Additional parameters to be passed to the image.plot function (see ?fields::image.plot for details).

### Value

Called for its effects

### Author(s)

Federico Comoglio

### Examples

    fn <- system.file("extdata", "CGRsample.fa", package = "DNAshapeR")
    pred <- getShape(fn)
    library(fields)
    heatShape(pred$MGW, 20)

[Package DNAshapeR version 1.14.0 Index]