Package: dendroTools 2.0.0

Jernej Jevsenak

dendroTools: Linear and Nonlinear Methods for Analyzing Daily and Monthly Dendroclimatological Data

Provides methods for analyzing the relationships between tree-ring proxies and daily or monthly climate data. daily_response() and monthly_response() aggregate climate data over moving windows of different widths and positions, optionally extending into previous years. For each window, they calculate the correlation (Pearson, Spearman or Kendall) with a proxy, or the explained variance of linear models or Bayesian regularized neural networks with one or more proxies, and find the window with the strongest relationship. daily_response_seascorr() and monthly_response_seascorr() calculate partial correlations between a proxy and a primary climate variable, controlling for a second one, following 'seascorr' by Meko et al. (2011) <doi:10.1016/j.cageo.2011.01.013>. They also partition the variance explained in the optimal window between the two variables and can calculate the partial correlations of the second variable. The climate data in each window can be aggregated as means, sums and other statistics, or as the Standardized Precipitation-Evapotranspiration Index (SPEI) by Vicente-Serrano et al. (2010) <doi:10.1175/2009JCLI2909.1>, calculated from the climatic water balance that water_balance() derives from precipitation and temperature. The aggregated climate series can be detrended linearly or with the spline, mean, autoregressive and Friedman methods of dplR::detrend(). Windows that are not significant can be removed with a per-window test or with corrections for multiple testing. Bootstrap confidence intervals are available, and the optimal window can be checked for temporal stability and by cross-validation. compare_methods() compares multiple linear regression, neural networks, model trees and random forests for climate reconstruction. The methods are described in Jevsenak and Levanic (2018) <doi:10.1016/j.dendro.2018.01.005>, Jevsenak et al. (2018) <doi:10.1016/j.dendro.2018.10.001> and Jevsenak (2020) <doi:10.1016/j.dendro.2020.125753>.

Authors:Jernej Jevsenak [aut, cre]

dendroTools_2.0.0.tar.gz
dendroTools_2.0.0.zip(r-4.7-any)dendroTools_2.0.0.zip(r-4.6-any)
dendroTools_2.0.0.tar.gz(r-4.7-any)dendroTools_2.0.0.tar.gz(r-4.6-any)
dendroTools_2.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
dendroTools/json (API)

# Install 'dendroTools' in R:
install.packages('dendroTools', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/jernejjevsenak/dendrotools/issues

Datasets:

On CRAN:

Conda:

4.24 score 140 scripts 1.0k downloads 21 exports 107 dependencies

Last updated from:19efaca127. Checks:6 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-develOK275
source / vignettesOK303
linux-releaseOK281
windows-develOK168
windows-releaseOK234
wasm-releaseOK142

Exports:boot_f_brnnboot_f_corboot_f_lmboot_f_pcorcalculate_metricscompare_methodscount_onescritical_rdaily_responsedaily_response_seascorrdata_transformglimpse_daily_datamonthly_responsemonthly_response_seascorrplot_extremeplot_heatmapround_dfround2smooth_matrixwater_balanceyears_to_rownames

Dependencies:askpassbase64encbitopsbootbrnnbslibcachemcaToolsclicpp11crosstalkCubistcurldata.tabledigestdplRdplyrevaluatefarverfastmapfontawesomeFormulafsgenericsggplot2glueGPArotationgplotsgridExtragswgtablegtoolshighrhtmltoolshtmlwidgetshttrisobandjquerylibjsonliteKernSmoothknitrlabelinglaterlatticelazyevallifecyclelme4lubridatemagrittrMASSMatrixmatrixStatsmemoisemimeminqaMLmetricsmnormtnlmenloptroceopensslotelpillarpkgconfigplotlyplyrpngpromisespsychpurrrR.methodsS3R.ooR.utilsR6randomForestrappdirsrbibutilsRColorBrewerRcppRcppEigenRdpackreformulasreshape2rlangrmarkdownROCRS7sassscalessignalstringistringrsystibbletidyrtidyselecttimechangetinytextruncnormutf8vctrsviridisviridisLitewithrxfunXMLyaml

Detrending climate data
1 Introduction | 2 Methods and arguments | 3 Examples | 3.1 Monthly temperatures with and without detrending | 3.2 Comparing the methods | 3.3 Ratios for precipitation | 3.4 Prewhitening daily data | 3.5 Different settings for the control variable | 4 Practical notes | References

Last update: 2026-11-23
Started: 2026-11-23

Partial correlations with the seascorr functions
1 Introduction | 2 Data and main arguments | 3 Monthly data | 3.1 Temperature, controlling for precipitation | 3.2 Both variables | 3.3 Significance | 4 Daily data | 5 Climate detrending | 6 Notes on interpretation | References

Last update: 2026-11-23
Started: 2026-11-23

Climate-growth correlations with SPEI
1 Introduction | 2 Data | 3 Climatic water balance | 4 From the water balance to SPEI | 5 Monthly data | 6 Daily data | 7 Subsets of years | 8 Detrending and partial correlations | 9 Notes | References

Last update: 2026-11-23
Started: 2026-11-23

Modify plots using ggplot
1 Introduction | 2 A basic daily_response example | 3 Default plot and ggplot-based modifications | 3.1 Polish the default plot with ggplot2 | 3.2 Additional common modifications | 4 Create a similar plot from scratch | 5 Summary

Last update: 2026-05-20
Started: 2026-05-20

Examples with daily climate data
1 Introduction | 2 Transformation and quick preview of daily data | 3 The daily_response() in action | 3.1 An example of analysing the relationship between Mean Vessel Area (MVA) tree-ring parameter and daily temperature data with fixed window approach | 3.2 Analysis of climate-growth correlations only for a subset of selected time interval | 4 An example with multiple tree-ring proxies | 5 An example of climate reconstruction | 6 The calculation of partial correlations with daily_response_seascorr()

Last update: 2024-04-27
Started: 2020-10-30

Compare different regression methods
1. The compare_methods() | 2. Basic example | 3. Principal component analysis in combination with the compare_methods() | 4. Example of multiproxy analysis | 5. Example of climate reconstruction | 6. Tuning the machine learning parameters

Last update: 2022-05-04
Started: 2020-10-30

Readme and manuals

Help Manual

Help pageTopics
calculate_metricscalculate_metrics
compare_methodscompare_methods
critical_rcritical_r
daily_responsedaily_response
daily_response_seascorrdaily_response_seascorr
Mean vessel area example proxy from 2012 - 1940data_MVA
data_transformdata_transform
Tree-ring width (TRW) example proxy from 1981 - 1757data_TRW
Tree-ring width (TRW) data from 2012 - 1961data_TRW_1
MVA and mean April temperaturedataset_MVA
Example of dataset with individual chronologies of MVA and mean April temperaturedataset_MVA_individual
TRW and mean June - July temperature from Albaniadataset_TRW
The complete dataset of standardized tree-ring chronology from Albaniadataset_TRW_complete
Example of dataset as required for compare_methods()example_dataset_1
Tree-ring example proxies 1 from 2015 - 1961example_proxies_1
Example of dataset with individual chronologies of MVA.example_proxies_individual
glimpse_daily_dataglimpse_daily_data
Daily mean temperatures for Kredarica (Alps in Slovenia) from 2017 - 1955KRE_daily_temperatures
Daily precipitation for Ljubljana from 2017 - 1900LJ_daily_precipitation
Daily mean temperatures for Ljubljana from 2016 - 1930LJ_daily_temperatures
Monthly sums of precipitation for Ljubljana from 2018 - 1900. Tidy format.LJ_monthly_precipitation
Monthly mean air temperatures for Ljubljana from 2015 - 1900LJ_monthly_temperatures
monthly_responsemonthly_response
monthly_response_seascorrmonthly_response_seascorr
Daily climate data for the black pine site Sezana (SEZ), 1950 - 2020SEZ_daily_climate SEZ_daily_psum SEZ_daily_tavg SEZ_daily_tmax SEZ_daily_tmin
Raw tree-ring widths of black pine from Sezana (SEZ), Slovenia, 1882 - 2021SEZ_rwl
Standardised tree-ring width chronology swit272, Larix decidua Mill.swit272
Daily precipitation for swit272 chronologyswit272_daily_precipitation
Daily temperatures for swit272 chronologyswit272_daily_temperatures
Climatic water balance from temperature and precipitationwater_balance
Function returns a data frame with row names as yearsyears_to_rownames