iascaggram: Interactive scaggrams

Description Usage Arguments Details Value Note Author(s) References See Also Examples

View source: R/iascaggram.R

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

1
iascaggram(sdfdata)

Arguments

sdfdata

A list of class "sdfdata".

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.

Value

A shiny app object.

Note

The scagnostics need to lie between 0 and 1.

sdf_sort can be very slow for data sets with a huge number of variables. Use Option 'Quick' in this case for a fast reordering or use sdf_sort (with a time limit if necessary) before starting the interactive app.

Adding scatterplots or glyphs is only advisable for a small number of variables.

Author(s)

Katrin Grimm

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## 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) 

## End(Not run)

mbgraphic documentation built on May 2, 2019, 2:45 a.m.