Learn R Programming

archiDART (version 3.4)

plot.barcode: 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 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.

type
xlim
ylim
main
xlab

A character string giving a label for the X axis.

ylab

A character string giving a label for the Y axis.

axes
frame.plot
panel.first
panel.last
xgap.axis
ygap.axis
...

Additional graphical parameters.

Value

Returns a plot.

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: 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

perhomology, par.

Examples

Run this code
# NOT RUN {
## 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)")
# }

Run the code above in your browser using DataLab