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.
mapperVertices(m, pt_labels)
A data frame containing the vertex names (Nodename
), group information (Nodegroup
), and vertex sizes (Nodesize
).
The Mapper output object that contains information about the vertices and level sets.
A vector of point labels to be assigned to the points in each vertex.