Learn R Programming

setweaver (version 1.0.0)

setmapmi: setmapmi

Description

Creates a set map visualization from the output of [pairmi()], showing which original variables compose the derived sets at a specified depth.

Usage

setmapmi(original_variables = NULL, sets = NULL, n_elements = NULL)

Value

A setmap showing which original variables make up the sets at a certain depth

Arguments

original_variables

Character vector of names for the original variables that were paired (typically `pairmi_result$original.variables`).

sets

A data frame returned by [pairmi()] describing the sets. Must contain the columns required by `setmapmi()` (e.g., identifiers for sets and their constituent variables).

n_elements

Integer scalar giving the set size (depth) to visualize (e.g., `2` for pairs, `3` for triplets). Must be >= 1 and present in `sets`.

Examples

Run this code
pairmiresult = pairmi(misimdata[,2:6])
setmapmi(pairmiresult$original.variables,pairmiresult$sets,2)

Run the code above in your browser using DataLab