diff --git a/README.Rmd b/README.Rmd index b825891..02571d5 100644 --- a/README.Rmd +++ b/README.Rmd @@ -41,6 +41,13 @@ For a detailed description of {easyclimate}, please read [this paper](https://do ## Installation +Stable version from CRAN: + +``` r +install.packages("easyclimate") +``` + +Development version from GitHub: ``` r # install.packages("remotes") remotes::install_github("VeruGHub/easyclimate") diff --git a/README.md b/README.md index 8be7370..6e7cd2a 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,14 @@ package [website](https://verughub.github.io/easyclimate/). ## Installation +Stable version from CRAN: + +``` r +install.packages("easyclimate") +``` + +Development version from GitHub: + ``` r # install.packages("remotes") remotes::install_github("VeruGHub/easyclimate") diff --git a/docs/index.html b/docs/index.html index 8713f1e..d8b078b 100644 --- a/docs/index.html +++ b/docs/index.html @@ -105,7 +105,11 @@
Stable version from CRAN:
+install.packages("easyclimate")
Development version from GitHub:
+
# install.packages("remotes")
remotes::install_github("VeruGHub/easyclimate")
To obtain a data frame of daily climatic values for point coordinates:
-+library(easyclimate) coords <- data.frame(lon = -5.36, lat = 37.40) @@ -163,7 +167,7 @@
Obtain a data frame of climatic
Obtain a raster of climatic values
To obtain a (multi-layer) raster of daily climatic values for an area:
-+library(terra) ## Download the polygon contour of a region @@ -180,7 +184,7 @@
Obtain a raster of climatic values output = "raster" )
The output (
-sobrarbetemp
) is a SpatRaster with 3 layers (for each of 3 days):+sobrarbetemp #> class : SpatRaster #> dimensions : 70, 82, 3 (nrow, ncol, nlyr) @@ -192,12 +196,12 @@
Obtain a raster of climatic values#> min values : 2.34, 4.42, 6.91 #> max values : 22.89, 25.03, 26.87
Let’s make a map. First using terra:
-+plot(sobrarbetemp, col = rev(RColorBrewer::brewer.pal(9, "RdYlBu")), smooth = TRUE, nc = 3)
Now using ggplot2 and tidyterra:
-+library(ggplot2) library(tidyterra) diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml index 15572dc..65226ee 100644 --- a/docs/pkgdown.yml +++ b/docs/pkgdown.yml @@ -5,5 +5,5 @@ articles: climatic-indices: climatic-indices.html points-df-mat-sf: points-df-mat-sf.html polygons-raster: polygons-raster.html -last_built: 2023-10-24T17:13Z +last_built: 2023-10-24T17:30Z