Skip to contents

This function retrieves a data frame of tree default data.

Usage

get_tree_data(tree_name = NULL)

Arguments

tree_name

Default NULL. The tree name, if only a single tree's info is needed. Otherwise, all trees are returned.

Value

Returns a data frame.

Examples

# Fetch the tree data frame.
get_tree_data()
#>          name solid_available trunk_color tree_color trunk_crown_ratio
#> 1    columnar            TRUE     #8C6F5B    #A2C683         0.3333333
#> 2  pyramidal1            TRUE     #8C6F5B    #066038         0.1666667
#> 3  pyramidal2            TRUE     #8C6F5B    #447765         0.1666667
#> 4        oval            TRUE     #8C6F5B    #CBD362         0.3333333
#> 5        palm           FALSE     #8C6F5B    #CCB471         0.5000000
#> 6     rounded           FALSE     #8C6F5B    #7CB262         0.3333333
#> 7  spreading1            TRUE     #8C6F5B    #DB8952         0.3333333
#> 8  spreading2           FALSE     #8C6F5B    #E0A854         0.3333333
#> 9        vase           FALSE     #8C6F5B    #75C165         0.3333333
#> 10    weeping            TRUE     #8C6F5B    #AECCB1         0.3333333

# Get single tree
get_tree_data("palm")
#>   name solid_available trunk_color tree_color trunk_crown_ratio
#> 5 palm           FALSE     #8C6F5B    #CCB471               0.5