View source: R/print.foldermtg.R
print.foldermtg | R Documentation |
foldermtg
print
function, applied to an object of class "foldermtg"
, prints an MTG (Multiscale Tree Graph) folder, as returned by foldermtg
function.
## S3 method for class 'foldermtg'
print(x, classes = TRUE, description = FALSE, features = TRUE,
topology = FALSE, coordinates = FALSE, ...)
x |
an object of class |
classes |
logical. If |
description |
logical. If |
features |
logical. If |
topology |
logical. If |
coordinates |
logical. If |
... |
optional arguments to |
If classes
, description
or features
are TRUE
, the corresponding data frames are displayed.
If topology = TRUE
, the plant structure is displayed; and if coordinates = TRUE
, the spatial coordinates are displayed.
By default, the data frames containing the features on the vertices per class are printed.
Rachid Boumaza, Pierre Santagostini, Smail Yousfi, Gilles Hunault, Sabine Demotes-Mainard
Pradal, C., Godin, C. and Cokelaer, T. (2023). MTG user guide
read.mtg
: reads a MTG file and creates an object of class "foldermtg"
.
mtgfile1 <- system.file("extdata/plant1.mtg", package = "dad")
xmtg1 <- read.mtg(mtgfile1)
print(xmtg1)
print(xmtg1, topology = TRUE)
print(xmtg1, coordinates = TRUE)
mtgfile2 <- system.file("extdata/plant2.mtg", package = "dad")
xmtg2 <- read.mtg(mtgfile2)
print(xmtg2)
print(xmtg2, topology = TRUE)
print(xmtg2, coordinates = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.