plotDensity: Density plots of columns in a matrix

Description Usage Arguments Value Examples

View source: R/plotDensity.R

Description

Plots the density of the columns of a matrix. Wrapper for matdensity.

Usage

1
2
plotDensity(obj, groups = NULL, normalized = FALSE, legendPos = NULL,
  ...)

Arguments

obj

ExpressionSet object

groups

Vector of labels for each sample or a column name of the phenoData slot for the ids to filter. Default is the column names.

normalized

TRUE / FALSE, use the normalized matrix or log2-transformed raw counts

legendPos

Legend title position. If null, does not create legend by default.

...

Extra parameters for matdensity.

Value

A density plot for each column in the ExpressionSet object colored by groups

Examples

1
2
3
4
5
data(skin)
filtData <- filterLowGenes(skin,"SMTSD")
plotDensity(filtData,groups="SMTSD",legendPos="topleft")
# to remove the legend
plotDensity(filtData,groups="SMTSD")

yarn documentation built on Nov. 8, 2020, 7:50 p.m.