Learn R Programming

extracat (version 1.7-0)

resort: Rearrangement of cpcp plots

Description

Rearranging of the cpcp plot after a new selection.

Usage

resort(V = iset(which = iset.cur()),
        sel = iset.selected(), listen = FALSE)

Arguments

V
An iset created by the cpcp function for which the sorting is to be computed. Usually it is not necessary to choose V individually.
sel
The indices of the selected cases.
listen
If TRUE the function listen will be (re-)called after the updating process is done.

Value

  • No return value.

Details

If called individually after making a new selection the function will simply rearrange the selected cases at the top of each category. Can also be called indirectly by listen.

References

Alexander Pilhoefer, Antony Unwin (2013). New Approaches in Visualization of Categorical Data: R Package extracat. Journal of Statistical Software, 53(7), 1-25. URL http://www.jstatsoft.org/v53/i07/

See Also

listen cpcp

Examples

Run this code
require(MASS)
    cpcp(V = housing, ord = c(4,3,1,2))
    # selection via console
    s = iset()
    iset.select(what = which(ivar.data(s$Type) == "Terrace") )
    resort()

Run the code above in your browser using DataLab