plotDensity {cn.farms} | R Documentation

## 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.

### Author(s)

Djork-Arne Clevert okko@clevert.de and Andreas Mitterecker mitterecker@bioinf.jku.at

### Examples

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

[Package cn.farms version 1.38.0 Index]