mtgplant2 | R Documentation |
foldermtg
These data provides the topology of a bushy plant.
data("mtgplant2")
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).
This object of class foldermtg
can be built by reading the data in a MTG file (see examples).
Pradal, C., Godin, C. and Cokelaer, T. (2023). MTG user guide
read.mtg
: to read an MTG file and build an object of class MTG.
mtgplant1
: an other example of such data.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.