Learn R Programming

mbgraphic (version 1.0.1)

iacorrgram: Interactive corrgrams

Description

Generates an interactive corrgram programmed with the package shiny. It uses the package seriation for reordering, optimal leaf ordering ('OLO') and reordering based on principal components ('PCA'). If 'OLO' is selected, cluster lines can be drawn by selecting the number of clusters or a minimum correlation (see varclust for details). A range of correlation can be chosen, where only pairs of variables with absolute correlation within the range are drawn with colored cells, otherwise the cells are colored white.

Usage

iacorrgram(data)

Arguments

data

A data frame.

Value

A shiny app object.

References

M. Friendly (2002) Corrgrams: Exploratory displays for correlation matrices The American Statistician 56(4), 316--324.

W. Chang, J. Cheng, J. Allaire, Y. Xie and J. McPherson (2016) shiny: Web Application Framework for R. https://cran.r-project.org/package=shiny.

See Also

varclust

Examples

Run this code
# NOT RUN {
data(Election2005)
iacorrgram(Election2005)
# }

Run the code above in your browser using DataLab