plot.barcode {archiDART} | R Documentation |
Plot the Persistence Barcode
Description
Plot the persistence barcode of the topology of a root system. More information can be found in Li et al (2017) and Delory et al (2018).
Usage
## S3 method for class 'barcode'
plot(x, y = NULL, type = "p", xlim = NULL, ylim = NULL,
log = "", main = NULL, sub = NULL, xlab = NULL, ylab = NULL,
ann = par("ann"), axes = TRUE, frame.plot = axes,
panel.first = NULL, panel.last = NULL, asp = NA,
xgap.axis = NA, ygap.axis = NA, ...)
Arguments
x |
A barcode object. Mandatory. |
y |
See |
type |
See |
xlim |
See |
ylim |
See |
log |
See |
main |
See |
sub |
See |
xlab |
A character string giving a label for the X axis. |
ylab |
A character string giving a label for the Y axis. |
ann |
See |
axes |
See |
frame.plot |
See |
panel.first |
See |
panel.last |
See |
asp |
See |
xgap.axis |
See |
ygap.axis |
See |
... |
Additional graphical parameters. |
Value
Returns a plot.
Author(s)
Benjamin M. Delory, Guillaume Lobet
References
Delory B.M., Li M., Topp C.N., Lobet G. (2018). archiDART v3.0: a new data analysis pipeline allowing the topological analysis of plant root systems, F1000Research, 7:22, DOI: doi: 10.12688/f1000research.13541.1
Li M., Duncan K., Topp C.N., Chitwood D.H. (2017) Persistent homology and the branching topologies of plants, American Journal of Botany, DOI: 10.3732/ajb.1700046.
See Also
Examples
## Locate folder with RSML file
path <- system.file("extdata", package="archiDART")
table<-rsmlToTable(inputrsml=path, unitlength="cm", rsml.date="age")
#Persistent homology
ph<-perhomology(table)
#Plot the barcode
plot(ph$'monocot-archisimple_1', las=1, xlab="Geodesic distance (cm)")