Learn R Programming

rsml (version 1.3)

rsmlToPlant: Import a single RSML file into a Plant object

Description

Import a single RSML file into a Plant object

Usage

rsmlToPlant(rsml.path, threed = FALSE)

Arguments

rsml.path
The path to the .rsml file. Mandatory.
threed
Does the RSML file contains a 3D root system?

Examples

Run this code
# 2D example
path <- "http://rootsystemml.github.io/images/examples/arabidopsis-simple.rsml"
pl <- rsmlToPlant(path) # import the file as a 2D plant
plot(pl) # plot the plant

# 3D example
path <- "http://rootsystemml.github.io/images/examples/anagallis.rsml"
pl <- rsmlToPlant(path, threed=TRUE) # import the file as a 2D plant
plot(pl, threed=TRUE) # plot the plant

Run the code above in your browser using DataLab