Skip to contents

Calculate the mapper graph of a set

Usage

mapper(
  X = data.noisy_circle(),
  distance_matrix = stats::dist,
  f_X = X[1, ],
  covering = cover.uniform,
  clustering_function = clust.first_cutoff
)

Arguments

X

A dataframe or matrix.

distance_matrix

A dist object or matrix of distances; or a function that return such object when applied to X.

f_X

A numeric vector with length equal to the rows of X; or a function that return such a vector when applied to X.

covering

A matrix with intervals or a function that returns such an matrix.

clustering_function

A clustering function.

Value

A mapper object.

Examples

mp = mapper()
#> Error in validObject(.Object): invalid class “Intervals” object: The 'Intervals' classes are based on two-column, numeric matrices.
mp %>% plot_mapper()
#> Error in plot_mapper(.): object 'mp' not found