# RnaSeqTutorial-plotmultidensity: Multiple Density plot In UPSCb/RnaSeqTutorial: RNA-Seq Tutorial

## Description

Draws multiple density curves within a single plot.

## Usage

 ```1 2 3``` ```plot.multidensity(x, xlab = "x", col = brewer.pal(8, "Dark2"), legend.x = "top", xlim = NULL, ylim = NULL, lty = 1, legend.cex = 1, legend = NULL, ...) ```

## Arguments

 `x` a list of numeric vectors `xlab` the label of the x axis, default to `x` `col` the color palette to use default to `brewer.pal(8,"Dark2")` from the `RColorBrewer` package. `legend.x` the position of the legend, default to "top", see the `legend` function for more details about the positional argument `xlim` the xlim defaults to NULL. If NULL the limit is automatically calculated `ylim` the ylim defaults to NULL. If NULL the limit is automatically calculated `lty` the line type, default to 1 (blank), see `par` for more details `legend.cex` the character expansion of the legend, defaults to 1, see `cex` for more details `legend` the legend to be displayed, if NULL and x is a named list, the names are used as legend, otherwise the legend is omitted. If provided, it must be a list of length `length(x)` `...` additional argument passed to the `plot` and `lines` functions.

## Details

This function calculates the most suitable axis from the densities calculated from the provided list of numerical vectors and display all densities in a single plot

`RColorBrewer`, `legend` and `par`
 ```1 2 3 4 5 6 7``` ```## Not run: ## TODO add an object after putting results in the data folder ## and use that for plotting the example data(RST-densities) plot.multidensity(density.list) ## End(Not run) ```