heatShape: Plot heatmap of DNA shape features

Description Usage Arguments Value Author(s) Examples

View source: R/plotShape.R

Description

Plot heatmap of DNA shape features

Usage

1
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

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

TsuPeiChiu/DNAshapeR documentation built on July 6, 2021, 9:07 p.m.