This package contains the R functions most used in the ENEA Climate Impacts & Modelling laboratory to deal with climate data.
Please be careful this package is still under-development.
You can install the package using devtools
with devtools::install_github("matteodefelice/eneaR")
spag_plot
: a very trivial function useful for a quick plot of a matrix containing the members of an ensemblepretty_labels
: a function useful to provide nice labels for discrete intervalsplot_field_discrete
: this is the function that everyone needs when working with climate data in R. Based on ggplot2, this function gives you the possibility to create a beautiful plot of gridded data with smoothing, dotting (e.g. to show the significance), font size and line widthgetEqualFreqBreaks
: it splits a vector into breaks with the same sizemySave
: replace your save
with mySave
to attach metadata to your saved R datagetTSfromSHP
: a very advanced function that aggregates gridded data on European NUTS regions (from ADM0 to ADM2) in time-series. means_along
: a very naive function to perform the mean on the n-th dimension of an array avoiding apply
getEconomicValue
: a vector-based function to evaluate the Economic Value of a probabilistic forecast according the Richardson definitionarr_melt
: taken from this (https://gist.github.com/mdsumner/c9bbe897fafcba9ddaa00d7554d0edff#file-as_tibble-array-matrix-r) gist from Michael SumnerAdd the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.