plot.diagram | R Documentation |
The function plot.diagram
plots the Persistence Diagram stored in an object of class diagram
. Optionally, it can also represent the diagram as a persistence barcode.
## S3 method for class 'diagram'
plot(
x, diagLim = NULL, dimension = NULL, col = NULL,
rotated = FALSE, barcode = FALSE, band = NULL, lab.line = 2.2,
colorBand = "pink", colorBorder = NA, add = FALSE, ...)
x |
an object of class |
diagLim |
numeric vector of length 2, specifying the limits of the plot. If |
dimension |
number specifying the dimension of the features to be plotted. If |
col |
an optional vector of length |
rotated |
logical: if |
barcode |
logical: if |
band |
numeric: if |
lab.line |
number of lines from the plot edge, where the labels will be placed. The default value is |
colorBand |
the color for filling the confidence band. The default value is |
colorBorder |
the color to draw the border of the confidence band. The default value is |
add |
logical: if |
... |
additional graphical parameters. |
Fabrizio Lecci
Brittany T. Fasy, Fabrizio Lecci, Alessandro Rinaldo, Larry Wasserman, Sivaraman Balakrishnan, and Aarti Singh. (2013), "Statistical Inference For Persistent Homology", (arXiv:1303.7117). To appear, Annals of Statistics.
Frederic Chazal, Brittany T. Fasy, Fabrizio Lecci, Alessandro Rinaldo, and Larry Wasserman, (2014), "Stochastic Convergence of Persistence Landscapes and Silhouettes", Proceedings of the 30th Symposium of Computational Geometry (SoCG). (arXiv:1312.0308)
alphaComplexDiag
, alphaComplexDiag
, gridDiag
, ripsDiag
XX1 <- circleUnif(30)
XX2 <- circleUnif(30, r = 2) + 3
XX <- rbind(XX1, XX2)
DiagLim <- 5
maxdimension <- 1
## rips diagram
Diag <- ripsDiag(XX, maxdimension, DiagLim, printProgress = TRUE)
#plot
par(mfrow = c(1, 3))
plot(Diag[["diagram"]])
plot(Diag[["diagram"]], rotated = TRUE)
plot(Diag[["diagram"]], barcode = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.