Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


qtlcharts (version 0.16)

iboxplot: Modern boxplot linked to underlying histrograms

Description

Creates an interactive graph for a large set of box plots (rendered as lines connecting the quantiles), linked to underlying histograms.

Usage

iboxplot(
  dat,
  qu = c(0.001, 0.01, 0.1, 0.25),
  orderByMedian = TRUE,
  breaks = 251,
  chartOpts = NULL,
  digits = 5
)

Value

An object of class `htmlwidget` that will intelligently print itself into HTML in a variety of contexts including the R console, within R Markdown documents, and within Shiny output bindings.

Arguments

dat

Data matrix (individuals x variables)

qu

Quantiles to plot (All with 0 < qu < 0.5)

orderByMedian

If TRUE, reorder individuals by their median

breaks

Number of bins in the histograms, or a vector of locations of the breakpoints between bins (as in [graphics::hist()])

chartOpts

A list of options for configuring the chart (see the coffeescript code). Each element must be named using the corresponding option.

digits

Round data to this number of significant digits before passing to the chart function. (Use NULL to not round.)

See Also

[iplotCorr()], [scat2scat()]

Examples

Run this code
n.ind <- 500
n.gene <- 10000
expr <- matrix(rnorm(n.ind * n.gene, (1:n.ind)/n.ind*3), ncol=n.gene)
dimnames(expr) <- list(paste0("ind", 1:n.ind),
                       paste0("gene", 1:n.gene))
# \donttest{
iboxplot(expr, chartOpts=list(xlab="Mice", ylab="Gene expression"))# }

Run the code above in your browser using DataLab