plot.homology {TDAkit} | R Documentation |
Plot Persistent Homology via Barcode or Diagram
Description
Given a persistent homology of the data represented by a reconstructed
complex in S3 class homology
object, visualize it as either a barcode
or a persistence diagram using ggplot2.
Usage
## S3 method for class 'homology'
plot(x, ...)
Arguments
x |
a |
... |
extra parameters including
|
Value
a ggplot2 object.
Examples
# Use 'iris' data
XX = as.matrix(iris[,1:4])
# Compute VR Diagram
homology = diagRips(XX)
# Plot with 'barcode'
opar <- par(no.readonly=TRUE)
plot(homology, method="barcode")
par(opar)
[Package TDAkit version 0.1.2 Index]