Learn R Programming

MapperAlgo (version 1.0.9)

CPEmbedding: Conditional Probability Embedding for Mapper Nodes

Description

The origin Mapper includes mean and majority label embeddings. And this function provides another way to color the Mapper nodes. The function is useful to connect original data for color labeling, especially if you're interested in characteristic attributes.

Usage

CPEmbedding(
  mapper,
  original_data,
  columns = list(),
  a_level = NULL,
  b_level = NULL
)

Value

A list of conditional probabilities value for each Mapper node.

Arguments

mapper

A Mapper object created by the MapperAlgo function.

original_data

Original dataframe, not the filter values.

columns

Two columns in original_data to compute conditional probability.

a_level

The level (attribute) of column A to condition on. If NULL, the first level is used.

b_level

The level (attribute) of column B for which the conditional probability is computed. If NULL, the first level is used.