iplot {qtlcharts}R Documentation

Interactive scatterplot

Description

Creates an interactive scatterplot.

Usage

iplot(x, y = NULL, group = NULL, indID = NULL, chartOpts = NULL, digits = 5)

Arguments

x

Numeric vector of x values

y

Numeric vector of y values

group

Optional vector of categories for coloring the points

indID

Optional vector of character strings, shown with tool tips

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

[iplotCorr()], [iplotCurves()], [itriplot()], [idotplot()], [iplotPXG()]

Examples

x <- rnorm(100)
grp <- sample(1:3, 100, replace=TRUE)
y <- x*grp + rnorm(100)

iplot(x, y, grp)


[Package qtlcharts version 0.16 Index]