Learn R Programming

cn.farms (version 1.20.0)

plotDensity: Function to create a density plot

Description

Simple density plot. Adapted from the aroma.affymetrix package (www.aroma-project.org)

Usage

plotDensity(x, xlim = c(0, 16), ylim, col, lty, lwd, add = FALSE, xlab, ylab, log = TRUE, ...)

Arguments

x
Matrix with numeric values.
xlim
The limits for the x axis.
ylim
The limits for the y axis.
col
Vector with colors corresponding to the columns of the matrix.
lty
The line type (see graphics).
lwd
The line width, a positive number, defaulting to 1 (see graphics).
add
If FALSE (the default) then a new plot is produced. If TRUE, density lines are added to the open graphics device.
xlab
The labeling of the x axis.
ylab
The labeling of the y axis.
log
Logical values which states if the log2 should be taken from the data.
...
Further arguments of the plot function '

Value

A plot written to the graphics device.

Examples

Run this code
load(system.file("exampleData/slData.RData", package = "cn.farms"))
plotDensity(assayData(slData)$intensity)

Run the code above in your browser using DataLab