plotDistribution {psichomics} | R Documentation

## Plot distribution through a density plot

### Description

The tooltip shows the median, variance, max, min and number of non-NA samples of each data series.

### Usage

    plotDistribution(data, groups = "All samples", rug = TRUE,
      vLine = TRUE, ..., title = NULL, psi = NULL)

    plotDensity(data, groups = "All samples", rug = TRUE, vLine = TRUE,
      ..., title = NULL, psi = NULL)

### Arguments

`data` | Numeric, data frame or matrix: data for one gene or alternative splicing event
`groups` | List of characters (list of groups containing data identifiers) or character vector (group of each value in `data`)
`rug` | Boolean: include rug plot to better visualise data distribution
`vLine` | Boolean: include vertical plot lines to display descriptive statistics for each group
`...` | Extra parameters passed to `density` to create the kernel density estimates
`title` | Character: plot title
`psi` | Boolean: are data composed of PSI values? Automatically set to `TRUE` if all `data` values are between 0 and 1

### Value

Highcharter object with density plot

### Examples

    data <- sample(20, rep=TRUE)/20
    groups <- c(rep("A", 10), rep("B", 10))
    plotDistribution(data, groups)

[Package psichomics version 1.6.2 Index]