Skip to contents

Background

Twigs are the smallest above ground woody component of a tree. Twigs are responsible for supporting the delicate tissues needed to grow leaves and protect the buds during the dormant season. Because twig measurements are the basis for the Real Twig method, and publicly available databases of twigs are limited, we present a database of twig measurements for a wide range of tree genera and species.

Installation

You can install the package directly from CRAN:

Or the latest development version from GitHub:

devtools::install_github("https://github.com/aidanmorales/rTwig")

Load Packages

The first step is to load the rTwig package.

library(rTwig)
#> Warning in rgl.init(initValue, onlyNULL): RGL: unable to open X11 display
#> Warning: 'rgl.init' failed, running with 'rgl.useNULL = TRUE'.

# Useful packages
library(dplyr)
library(ggplot2)

Twig Database

The twig database is built directly into rTwig and can be called as follows:

# If the rTwig library has been loaded
twigs
# If rTwig hasn't been loaded, but just the twigs are needed
rTwig::twigs
#> # A tibble: 104 × 7
#>    scientific_name  radius_mm     n   min   max   std    cv
#>    <chr>                <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
#>  1 Abies concolor        1.43    21  0.89  1.9   0.28  0.19
#>  2 Abies spp.            1.43    21  0.89  1.9   0.28  0.19
#>  3 Acer platanoides      1.39    30  0.89  2.03  0.3   0.21
#>  4 Acer rubrum           1.18    30  0.89  1.52  0.16  0.14
#>  5 Acer saccharinum      1.41    14  0.89  1.9   0.27  0.2 
#>  6 Acer saccharum        1.2     30  0.89  1.65  0.23  0.19
#>  7 Acer spp.             1.29   104  0.89  2.03  0.23  0.18
#>  8 Aesculus flava        2.96    14  2.29  4.44  0.58  0.19
#>  9 Aesculus spp.         2.96    14  2.29  4.44  0.58  0.19
#> 10 Betula nigra          0.85    30  0.51  1.52  0.23  0.27
#> # ℹ 94 more rows

The database is broken into 7 different columns. scientific_name is the specific epithet. Genus spp. is the average of all of the species in the genus. radius_mm is the twig radius in millimeters. For each species, n is the number of unique twig samples taken, min is the minimum twig radius, max is the max twig radius, std is the standard deviation, and cv is the coefficient of variation.

Let’s see the breakdown of species.

unique(twigs$scientific_name)
#>   [1] "Abies concolor"               "Abies spp."                  
#>   [3] "Acer platanoides"             "Acer rubrum"                 
#>   [5] "Acer saccharinum"             "Acer saccharum"              
#>   [7] "Acer spp."                    "Aesculus flava"              
#>   [9] "Aesculus spp."                "Betula nigra"                
#>  [11] "Betula spp."                  "Carya cordiformis"           
#>  [13] "Carya ovata"                  "Carya spp."                  
#>  [15] "Castanea dentata"             "Castanea spp."               
#>  [17] "Cercis canadensis"            "Cercis spp."                 
#>  [19] "Cladrastis kentukea"          "Cladrastis spp."             
#>  [21] "Cornus mas"                   "Cornus officinalis"          
#>  [23] "Cornus spp."                  "Crataegus spp."              
#>  [25] "Fagus grandifolia"            "Fagus spp."                  
#>  [27] "Fagus sylvatica"              "Fraxinus americana"          
#>  [29] "Fraxinus pennsylvanica"       "Fraxinus quadrangulata"      
#>  [31] "Fraxinus spp."                "Ginkgo biloba"               
#>  [33] "Ginkgo spp."                  "Gleditsia spp."              
#>  [35] "Gleditsia triacanthos"        "Gymnocladus dioicus"         
#>  [37] "Gymnocladus spp."             "Gymnopodium floribundum"     
#>  [39] "Gymnopodium spp."             "Juglans cinerea"             
#>  [41] "Juglans nigra"                "Juglans spp."                
#>  [43] "Laguncularia racemosa"        "Laguncularia spp."           
#>  [45] "Larix laricina"               "Larix spp."                  
#>  [47] "Liquidambar spp."             "Liquidambar styraciflua"     
#>  [49] "Liriodendron spp."            "Liriodendron tulipifera"     
#>  [51] "Magnolia acuminata"           "Magnolia spp."               
#>  [53] "Malus spp."                   "Metasequoia glyptostroboides"
#>  [55] "Metasequoia spp."             "Nyssa spp."                  
#>  [57] "Nyssa sylvatica"              "Ostrya spp."                 
#>  [59] "Ostrya virginiana"            "Phellodendron amurense"      
#>  [61] "Phellodendron spp."           "Picea abies"                 
#>  [63] "Picea omorika"                "Picea pungens"               
#>  [65] "Picea spp."                   "Pinus nigra"                 
#>  [67] "Pinus spp."                   "Pinus strobus"               
#>  [69] "Platanus acerifolia"          "Platanus occidentalis"       
#>  [71] "Platanus spp."                "Populus deltoides"           
#>  [73] "Populus spp."                 "Prunus serotina"             
#>  [75] "Prunus spp."                  "Prunus virginiana"           
#>  [77] "Quercus acutissima"           "Quercus alba"                
#>  [79] "Quercus bicolor"              "Quercus coccinea"            
#>  [81] "Quercus ellipsoidalis"        "Quercus imbricaria"          
#>  [83] "Quercus macrocarpa"           "Quercus michauxii"           
#>  [85] "Quercus muehlenbergii"        "Quercus palustris"           
#>  [87] "Quercus robur"                "Quercus rubra"               
#>  [89] "Quercus shumardii"            "Quercus spp."                
#>  [91] "Quercus velutina"             "Rhizophora mangle"           
#>  [93] "Rhizophora spp."              "Thuja occidentalis"          
#>  [95] "Thuja spp."                   "Tilia americana"             
#>  [97] "Tilia spp."                   "Tilia tomentosa"             
#>  [99] "Tsuga canadensis"             "Tsuga spp."                  
#> [101] "Ulmus americana"              "Ulmus pumila"                
#> [103] "Ulmus rubra"                  "Ulmus spp."

Visualization

Let’s visualize some of the twig data!

# Lets look at a subset of oak species
twigs %>%
  filter(grepl("Quercus", scientific_name)) %>%
  ggplot(aes(x = scientific_name, y = radius_mm, color = scientific_name)) +
  geom_point(aes(size = n)) +
  geom_errorbar(aes(ymax = max, ymin = min)) +
  coord_flip() +
  labs(
    title = "Quercus Twig Radii",
    x = "",
    y = "Twig Radius (mm)",
    color = "Species",
    size = "Sample Size"
  ) +
  scale_x_discrete(limits = rev) +
  theme_classic()