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 = NULL, rug = TRUE, vLine = TRUE, ...,
  title = NULL, psi = NULL, rugLabels = FALSE)

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); if NULL or a character vector of length 1, all data points will be considered of the same group

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

rugLabels

Boolean: plot names or colnames of data in the rug?

Value

Highcharter object with density plot

Examples

data   <- sample(20, rep=TRUE)/20
groups <- paste("Group", c(rep("A", 10), rep("B", 10)))
label  <- paste("Sample", 1:20)
plotDistribution(data, groups, label=label)

[Package psichomics version 1.8.2 Index]