twd.maxima | R Documentation |
This function detects the TWD phases, including their beginning (TWDb), using the phase.zg function. Then it calculates the number, time of occurance (Tm) and value of every local maximum within each TWD phase. In addition it calculates the time difference between 'TWDb' and each 'Tm' within each TWD phase.
twd.maxima(df, TreeNum, smoothing = 5, showPlot = T, days = c(150, 160), ...)
df |
dataframe with first column containing date and time in the format |
TreeNum |
numerical value indicating the tree to be analysed. E.g. '1' refers to the first dendrometer data column in df. |
smoothing |
numerical value from 1 to 12 which indicates the length of the smoothing spline, i.e. 1 = 1 hour and 12 = 12 hours. Default is 5. |
showPlot |
logical, if |
days |
array with initial and final day for plotting. E.g. c(a,b), where a=initial date and b=final date. Default is c(150,160). |
... |
additional graphical parameter incuded in |
A dataframe with statistics of maxima in each TWD phase.
library(dendRoAnalyst) data(gf_nepa17) df1=gf_nepa17[2500:3500,] twd_max<-twd.maxima(df=df1, TreeNum=2, showPlot=FALSE) head(twd_max,10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.