iboxplot: Modern boxplot linked to underlying histrograms

Description Usage Arguments Value See Also Examples

View source: R/iboxplot.R

Description

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

Usage

1
2
3
4
5
6
7
8
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

1
2
3
4
5
6
7
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"))

qtlcharts documentation built on Jan. 8, 2022, 1:06 a.m.