iboxplot: Modern boxplot linked to underlying histrograms

View source: R/iboxplot.R

iboxplotR Documentation

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
)

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.)

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.

See Also

[iplotCorr()], [scat2scat()]

Examples

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))

iboxplot(expr, chartOpts=list(xlab="Mice", ylab="Gene expression"))


kbroman/qtlcharts documentation built on May 10, 2023, 6:07 p.m.