plotShape: Plot metaprofiles of DNA shape features

Description Usage Arguments Value Author(s) Examples

View source: R/plotShape.R

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

1
2
3
4
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

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

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