plotDistribution | R Documentation |
The tooltip shows the median, variance, maximum, minimum and number of non-NA samples of each data series, as well as sample names if available.
plotDistribution(
data,
groups = NULL,
rug = length(data) < 500,
vLine = TRUE,
...,
title = NULL,
subtitle = NULL,
type = c("density", "boxplot", "violin"),
invertAxes = FALSE,
psi = NULL,
rugLabels = FALSE,
rugLabelsRotation = 0,
legend = TRUE,
valueLabel = NULL
)
data |
Numeric, data frame or matrix: gene expression data or
alternative splicing event quantification values (sample names are based on
their |
groups |
List of sample names or vector containing the group name per
|
rug |
Boolean: show rug plot? |
vLine |
Boolean: plot vertical lines (including descriptive statistics for each group)? |
... |
Arguments passed on to
|
title |
Character: plot title |
subtitle |
Character: plot subtitle |
type |
Character: |
invertAxes |
Boolean: plot X axis as Y and vice-versa? |
psi |
Boolean: are |
rugLabels |
Boolean: plot sample names in the rug? |
rugLabelsRotation |
Numeric: rotation (in degrees) of rug labels; this
may present issues at different zoom levels and depending on the proximity
of |
legend |
Boolean: show legend? |
valueLabel |
Character: label for the value (by default, either
|
Argument groups
can be either:
a list of sample names, e.g.
list("Group 1"=c("Sample A", "Sample B"), "Group 2"=c("Sample C")))
a character vector with the same length as data
, e.g.
c("Sample A", "Sample C", "Sample B")
.
highchart
object with density plot
Other functions to perform and plot differential analyses:
diffAnalyses()
data <- sample(20, rep=TRUE)/20
groups <- paste("Group", c(rep("A", 10), rep("B", 10)))
names(data) <- paste("Sample", seq(data))
plotDistribution(data, groups)
# Using colours
attr(groups, "Colour") <- c("Group A"="pink", "Group B"="orange")
plotDistribution(data, groups)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.