Learn R Programming

MapperAlgo (version 1.0)

mapperVertices: Create Mapper Vertices

Description

This function generates the vertices of the Mapper graph, including their labels and groupings. It returns a data frame with the vertex names, the group each vertex belongs to, and the size of each vertex.

Usage

mapperVertices(m, pt_labels)

Value

A data frame containing the vertex names (Nodename), group information (Nodegroup), and vertex sizes (Nodesize).

Arguments

m

The Mapper output object that contains information about the vertices and level sets.

pt_labels

A vector of point labels to be assigned to the points in each vertex.