mbgraphic (version 1.0.1)

iascaggram: Interactive scaggrams

Description

An interactive version of the scaggrams from function scaggram programmed with the package shiny. Selections within the scaggram can be made by clicking or brushing. A selection implies drawing the corresponding scatterplot(s).

Usage

iascaggram(sdfdata)

Arguments

sdfdata

A list of class "sdfdata".

Value

A shiny app object.

Details

Reordering is done with the functions sdf_sort (options 'Use all scagnostics' and 'Use only chosen scagnostics') or sdf_quicksort (option 'Quick'). The glyphs drawn by choosing option 'add -> glyphs' represent all given scagnostics.

References

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

scaggram, sdf, scag2sdf, sdf_sort, sdf_quicksort

Examples

Run this code
# NOT RUN {
data(Election2005)
# some demographic/economic variables 
sdfdata1 <- sdf(Election2005[,5:40])
iascaggram(sdfdata1) 

# another smaller subset (for example to explore the glyphs in the scaggram)
sdfdata2 <- sdf(Election2005[,5:19])
iascaggram(sdfdata2) 
# }

Run the code above in your browser using DataLab