densityPlot: Density plot of all samples

View source: R/densityPlot.R

densityPlotR Documentation

Density plot of all samples

Description

Estimation the counts density for each sample

Usage

densityPlot(
  counts,
  group,
  col = c("lightblue", "orange", "MediumVioletRed", "SpringGreen"),
  outfile = TRUE,
  ggplot_theme = theme_gray()
)

Arguments

counts

matrix of counts

group

factor vector of the condition from which each sample belongs

col

colors of the curves (one per biological condition)

outfile

TRUE to export the figure in a png file

ggplot_theme

ggplot2 theme function (theme_gray() by default)

Value

A file named densplot.png in the figures directory

Author(s)

Marie-Agnes Dillies and Hugo Varet


PF2-pasteur-fr/SARTools documentation built on April 6, 2022, 2:24 a.m.