View on GitHub

RSML

The language of root architecture

Home | Format | Tools | Examples

Aim

The R package allow the import, analysis and plotting of RSML datafiles.

The API is based on three new classes:

These thre levels allows the user to easily retrieve data that are biologically relevant such as the total length of the different root types, the insertion angles or the 3D repartitions of the roots in space.

WARNING : RSML-R is still in development, so miskakes can happen… If so, please contact Guillaume Lobet

Use

path <- "~/Desktop/Divers/rsml_tests/lupin-aero-1.rsml"

# Get the RSML file as a table containing the root information
pl.list <- rsmlToList(path)
write.csv(pl.list$processed, "~/Desktop/rsml-table.csv")

# Get the RSML as  a plant object
pl <- rsmlToPlant(path)

# Plot the plant
plot(pl)

# Display the plant properties
print(pl)

# Get the plant summary
sum.plant <- summary(pl)
sum.plant$total.length$value # Get the total lenght of the plant
sum.plant$prim.length$value # Get the primary lenght of the plant

# try to load 3D data
data(anagallis)
plot(anagallis, threed = T)
print(anagallis)
View source on GitHub Download binaries

R interface

Other tools

R ImageJ Python Excel C# Back to RSML home