multifreqpoly: Frequency polygon plot to display data distribution.

View source: R/multifreqpoly.R

multifreqpolyR Documentation

Frequency polygon plot to display data distribution.

Description

Produce Frequency polygon plot for each column of a numeric data matrix.

Usage

multifreqpoly(mat, nbreaks=100, col=1:ncol(mat), xlab="", 
              ylab="Frequency",legend = list(x = "top", fill=col,
              legend = if(is.null(colnames(mat))) paste(1:ncol(mat)) 
              else colnames(mat)),...)

Arguments

mat

A numeric matrix

nbreaks

The number of bins for frequency counting

col

Line plot color code, the length should be equal to the number of columns in mat

xlab

x-axis lable

ylab

y-axis lable

legend

A list of arguments that get passed to the function "legend"

...

Further arguments that get passed to the function "plot"

Value

Frequency polygon plot.

Author(s)

Zongli Xu

References

Zongli Xu, Liang Niu, Leping Li and Jack A. Taylor, ENmix: a novel background correction method for Illumina HumanMethylation450 BeadChip. Nucleic Acids Research 2015.

Examples

if(FALSE){
if (require(minfiData)) {
mdat <- preprocessRaw(RGsetEx)
beta=getBeta(mdat, "Illumina")
multifreqpoly(beta,col=rep("black",ncol(beta)))
}}

xuz1/ENmix documentation built on Nov. 19, 2024, 12:12 p.m.