plotShape {DNAshapeR} | R Documentation

## Plot metaprofiles of DNA shape features

### Description

DNA shape features can be visualized as aggregated line plots (also known as metaprofiles, see Comoglio et al., 2015), heat maps (Yang et al., 2014) and genome browser tracks (Chiu et al., 2014).

### Usage

    plotShape(shapeMatrix, background = NULL,
    colDots = rgb( 0, 0, 1, 0.1),
    colDotsBg = rgb( 0, 0, 0, 0.1),
    colLine = 'steelblue', colLineBg = 'gray50', cex = 0.5, lwd = 2, ylim, ...)

### Arguments

`shapeMatrix` | A matrix containing DNAshape prediction results
`background` | A matrix containing DNAshape prediction results for a set of background regions. Default to NULL, i.e. background not provided.
`colDots` | A character vector specifying the color of the points representing the column mean of shapeMatrix. Default to rgb( 0, 0, 1, 0.1).
`colDotsBg` | A character vector specifying the color of the points representing the column mean of background. Default to rgb( 0, 0, 0, 0.1).
`colLine` | A character string giving the color name of line representing the column mean of shapeMatrix. Default to 'steelblue'.
`colLineBg` | A character string giving the color name of line representing the column mean of background. Default to 'gray50'.
`cex` | A numerical value giving the amount by which plotting text and symbols should be magnified relative to the default. Default to 0.5.
`lwd` | A numerical value specifying the line width. Default to 2.
`ylim` | A numerical vector of size 2 specifying the y-axis plot range.
`...` | Additional parameters to be passed to the R plot function.

### Value

Called for its effects

### Author(s)

Federico Comoglio

### Examples

    fn <- system.file("extdata", "CGRsample.fa", package = "DNAshapeR")
    pred <- getShape(fn)
    plotShape(pred$MGW)
    plotShape(pred$ProT)
    plotShape(pred$Roll)
    plotShape(pred$HelT)

[Package DNAshapeR version 1.8.0 Index]