knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

treenetproc

The package treenetproc cleans, processes and visualises highly resolved time series of dendrometer data. In two steps, raw dendrometer data is aligned to regular time intervals and cleaned.

Further, the package offers functions to extract the day of the year of the start and end of the growing season as well as several characteristics of shrinkage and expansion phases.

Installation

You can install the latest stable version of the package from GitHub with:

``` {r install packge, echo = TRUE, results = "hide", message=FALSE, warning=FALSE}

install.packages("devtools")

library(devtools) devtools::install_github("treenet/treenetproc")

<br>


## Example

Below you can see a basic example of a processing result. 

```r
library(treenetproc)
data("dendro_data_L1")
data("dendro_data_L2")
example_L1 <- dendro_data_L1 %>% 
  dplyr::filter(series == "site-1_dendro-1") %>% 
  dplyr::filter(ts <= "2013-06-01")
example_L2 <- dendro_data_L2 %>% 
  dplyr::filter(series == "site-1_dendro-1") %>% 
  dplyr::filter(ts <= "2013-06-01")
layout(matrix(c(1, 2), nrow = 2), heights = c(1, 1),
       widths = 1)
par(mar = c(0, 2.1, 0, 1))
plot(data = example_L1, value ~ ts, type = "l", xaxt = "n", 
     yaxt = "n", ylab = "", las = 1, col = "grey70")
title(ylab = "raw", mgp = c(0.8, 1, 0))
par(mar = c(0, 2.1, 0, 1))
plot(data = example_L2, value ~ ts, type = "n", xaxt = "n", 
     yaxt = "n", ylab = "", xlab = "")
title(ylab = "processed", mgp = c(0.8, 1, 0))
lines(data = example_L2, value ~ ts, col = "#08519c")


For sample code and a demonstration of an exemplary workflow, see the vignette 'Introduction to treenetproc':

browseVignettes("treenetproc")

If you want to access the vignettes you need to build them when installing the package:

``` {r install package with vignettes, echo = TRUE, results = "hide", message=FALSE, warning=FALSE}

install.packages("devtools")

library(devtools) devtools::install_github("treenet/treenetproc", build_vignettes = TRUE)

<br>


## Citation
To cite `treenetproc` in a publication use:

```r
citation("treenetproc")


treenet/treenetproc documentation built on June 16, 2021, 4:39 p.m.