Learn R Programming

SimplicialComplex (version 0.1.0)

plot_persistence: Plot Persistence Diagram

Description

Plot Persistence Diagram

Usage

plot_persistence(df)

Value

A ggplot2 object representing the persistence diagram.

Arguments

df

Dataframe from plot_persistence.

Examples

Run this code
points <- matrix(c(0, 1, 1, 0, 0, 0, 1, 1), ncol = 2)
filtration <- build_vr_filtration(points, eps_max=1.2)
res <- boundary_info(filtration)
pairs <- extract_persistence_pairs(filtration, res$last_1, res$pivot_owner)
plot_persistence(pairs)

Run the code above in your browser using DataLab