Skip to contents

Plot persistence diagrams

Usage

plot_persistence(PD, title, dims = c(100, 100))

Arguments

PD

Persistence diagram for a given image

title

Title for the output figure

dims

Dimensions for the output figure

Value

Plot illustrating the birth and death scales for each homology

Examples

require(magrittr)
PD <- TDAstats::calculate_homology(
       data2.df %>% dplyr::filter(PID == 1) %>% dplyr::select(x,y),
       dim = 1,
       threshold = 10)
plot_persistence(PD = PD, title = "Example Persistence Diagram", dims = c(10, 10))