iplotMap {qtlcharts} | R Documentation |
Interactive genetic map plot
Description
Creates an interactive graph of a genetic marker map.
Usage
iplotMap(
map,
chr = NULL,
shift = FALSE,
horizontal = FALSE,
chartOpts = NULL,
digits = 5
)
Arguments
map |
Object of class '"map"', a list with each component being a vector of marker positions. You can also provide an object of class '"cross"', in which case the map is extracted with [qtl::pull.map()]. |
chr |
(Optional) Vector indicating the chromosomes to plot. |
shift |
If TRUE, shift each chromsome so that the initial marker is at position 0. |
horizontal |
If TRUE, have chromosomes arranged horizontally |
chartOpts |
A list of options for configuring the chart. 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
[iplotScanone()], [iplotPXG()]
Examples
library(qtl)
data(hyper)
map <- pull.map(hyper)
iplotMap(map, shift=TRUE)