mtgplant2: Class 'foldermtg'

mtgplant2R Documentation

Class foldermtg

Description

These data provides the topology of a bushy plant.

Usage

data("mtgplant2")

Format

This object of class foldermtg is a list of 9 data frames:

  • mtgplant2$classes: data frame with 6 rows and 5 columns named SYMBOL (factor: the classes of the vertices), SCALE (integer: the scale at which they appear), DECOMPOSITION (factor), INDEXATION (factor) and DEFINITION (factor).

    The vertex classes are:

    • P: the whole plant (scale 1)

    • A: the axes (scale 2)

    • F, I: the flower and internodes (scale 3)

  • mtgplant2$description: data frame with 4 rows and 4 columns (factors) named LEFT, RIGHT, RELTYPE and MAX.

  • mtgplant2$features: data frame with 9 rows and 2 columns (factors) named NAME and TYPE.

  • mtgplant2$topology: data frame with 14 rows and 3 columns:

    • order1 and order2 (factors): the codes of the vertices, as they are found in the MTG table of the MTG file. The column on which a code appears gives the branching order of the corresponding vertex.

    • vertex (character): the same codes of vertices, on a single column.

  • mtgplant2$coordinates: data frame with 0 rows and 0 columns (there are no spatial coordinates in these MTG data).

  • mtgplant2$P, mtgplant2$A, mtgplant2$F and mtgplant2$I: data frames of the features on the vertices (all numeric).

Details

This object of class foldermtg can be built by reading the data in a MTG file (see examples).

References

Pradal, C., Godin, C. and Cokelaer, T. (2023). MTG user guide

See Also

read.mtg: to read an MTG file and build an object of class MTG.

mtgplant1: an other example of such data.

Examples

data(mtgplant2)
print(mtgplant2)

# To read these data from a MTG file:
mtgfile2 <- system.file("extdata/plant2.mtg", package = "dad")
mtgplant2 <- read.mtg(mtgfile2)
print(mtgplant2)

dad documentation built on Aug. 30, 2023, 5:06 p.m.