Learn R Programming

qtlcharts (version 0.16)

itriplot: Interactive plot of trinomial probabilities

Description

Creates an interactive graph of trinomial probabilities, represented as points within an equilateral triangle.

Usage

itriplot(p, indID = NULL, group = NULL, chartOpts = NULL, digits = 5)

Arguments

p

Matrix of trinomial probabilities (n x 3); each row should sum to 1.

indID

Optional vector of character strings, shown with tool tips

group

Optional vector of categories for coloring the points

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

[iplot()], [iplotPXG()], [idotplot()]

Examples

Run this code
# NOT RUN {
n <- 100
p <- matrix(runif(3*n), ncol=3)
p <- p / colSums(p)
g <- sample(1:3, n, replace=TRUE)
# }
# NOT RUN {
itriplot(p, group=g)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab