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.
Arguments
- data
Numeric, data frame or matrix: gene expression data or alternative splicing event quantification values (sample names are based on their
namesorcolnames)- groups
List of sample names or vector containing the group name per
datavalue (read Details); ifNULLor a character vector of length 1,datavalues are considered from the same group- rug
Boolean: show rug plot?
- vLine
Boolean: plot vertical lines (including descriptive statistics for each group)?
- ...
Arguments passed on to
stats::density.defaultbwthe smoothing bandwidth to be used. The kernels are scaled such that this is the standard deviation of the smoothing kernel. (Note this differs from the reference books cited below, and from S-PLUS.)
bwcan also be a character string giving a rule to choose the bandwidth. Seebw.nrd.
The default,"nrd0", has remained the default for historical and compatibility reasons, rather than as a general recommendation, where e.g.,"SJ"would rather fit, see also Venables and Ripley (2002).The specified (or computed) value of
bwis multiplied byadjust.adjustthe bandwidth used is actually
adjust*bw. This makes it easy to specify values like ‘half the default’ bandwidth.kernel,windowa character string giving the smoothing kernel to be used. This must partially match one of
"gaussian","rectangular","triangular","epanechnikov","biweight","cosine"or"optcosine", with default"gaussian", and may be abbreviated to a unique prefix (single letter)."cosine"is smoother than"optcosine", which is the usual ‘cosine’ kernel in the literature and almost MSE-efficient. However,"cosine"is the version used by S.weightsnumeric vector of non-negative observation weights, hence of same length as
x. The defaultNULLis equivalent toweights = rep(1/nx, nx)wherenxis the length of (the finite entries of)x[]. Ifna.rm = TRUEand there areNA's inx, they and the corresponding weights are removed before computations. In that case, when the original weights have summed to one, they are re-scaled to keep doing so.Note that weights are not taken into account for automatic bandwidth rules, i.e., when
bwis a string. When the weights are proportional to true countscn,density(x = rep(x, cn))may be used instead ofweights.widththis exists for compatibility with S; if given, and
bwis not, will setbwtowidthif this is a character string, or to a kernel-dependent multiple ofwidthif this is numeric.give.Rkernlogical; if true, no density is estimated, and the ‘canonical bandwidth’ of the chosen
kernelis returned instead.subdensityused only when
weightsare specified which do not sum to one. When true, it indicates that a “sub-density” is desired and no warning should be signalled. By default, when false, awarningis signalled when the weights do not sum to one.warnWbwlogical, used only whenweightsare specified andbwischaracter, i.e., automatic bandwidth selection is chosen (as by default). When true (as by default), awarningis signalled to alert the user that automatic bandwidth selection will not take the weights into account and hence may be suboptimal.nthe number of equally spaced points at which the density is to be estimated. When
n > 512, it is rounded up to a power of 2 during the calculations (asfftis used) and the final result is interpolated byapprox. So it almost always makes sense to specifynas a power of two.from,tothe left and right-most points of the grid at which the density is to be estimated; the defaults are
cut * bwoutside ofrange(x).cutby default, the values of
fromandtoarecutbandwidths beyond the extremes of the data. This allows the estimated density to drop to approximately zero at the extremes.
- title
Character: plot title
- subtitle
Character: plot subtitle
- type
Character:
density,boxplotorviolinplot- invertAxes
Boolean: plot X axis as Y and vice-versa?
- psi
Boolean: are
datacomposed of PSI values? IfNULL,psi = TRUEif alldatavalues are between 0 and 1- 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
datavalues- legend
Boolean: show legend?
- valueLabel
Character: label for the value (by default, either
Inclusion levelsorGene expression)
Details
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").
See also
Other functions to perform and plot differential analyses:
diffAnalyses()