plotDen: Draw densities

View source: R/analyze.R

plotDenR Documentation

Draw densities

Description

Draw column densities of an object over multiple plots by using limma::plotDensities() function.

Usage

plotDen(dat, name = "", per.plot = 8, main = NULL, group = NULL,
legend = TRUE)

Arguments

dat

an object of log2-normalized protein (or gene) expressions, containing markers in rows and samples in columns.

name

name tag for the output file.

per.plot

number of densities to be drawn on a single plot. If NULL, ncol(object) will be used.

main

character string, an overall title for the plot.

group

vector or factor classifying the arrays into groups. Should be same length as ncol(object).

legend

character string giving position to place legend. See 'legend' for possible values. Can also be logical, with FALSE meaning no legend.

Value

pdf plot(s).

Examples

dat = setNames(as.data.frame(matrix(1:(5*10),5,10),
row.names = paste('marker',1:5,sep='')), paste('sample',1:10,sep=''))
plotDen(dat, name = 'myresults')

Huang-lab/oppti documentation built on March 26, 2023, 12:52 p.m.