plotDen: Draw densities

Description Usage Arguments Value Examples

View source: R/analyze.R

Description

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

Usage

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

1
2
3
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')

oppti documentation built on Nov. 8, 2020, 5 p.m.