plot.density.matrix: Density plots for every column in a matrix

Description Usage Arguments Author(s)

Description

Generic function to plot the columns of a matrix/data.frame as overlayed density plots.

Usage

1
2
3
4
5
  plot.density.matrix(data, legend = FALSE, add = FALSE,
    main = "Density Plot", ylim = NULL, xlim = NULL,
    xlab = "Expression Level (Log2)",
    ylab = "Probability Density", col = NULL,
    auto.log2 = TRUE, lty = NULL, legend.cex = 0.5, ...)

Arguments

data

a matrix or data.frame of values

legend

logical: add a legend to the plot?

add

logical: if TRUE, add to an existing plotting device, else create a new plotting device

main

the plot title

ylim

the y-axis limits. if NULL, this is auto-calculated

xlim

the x-axis limits. if NULL, this is auto-calculated

xlab

the x-axis title

ylab

the y-axis title

col

the colours of each density curve, which are recycled if necessary. if NULL, the standard colours 1:8 are used.

auto.log2

logical: automatically log-base-2 transform

lty

the line type for each density play. if NULL, line types 1:ncol(data)

legend.cex

the character expansion of the legend. default=0.5

...

arguments passed to lines

Author(s)

Mark Cowley, 9 May 2005


drmjc/mjcgraphics documentation built on May 15, 2019, 2:40 p.m.