knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/", warning = FALSE )
An R package to download the most up to date of these climate indices:
For the development version
install.packages("rsoi") library(rsoi) library(tibble)
library(rsoi) library(tibble)
Download Oceanic Nino Index data
oni <- download_oni() head(oni)
And a quick plot to illustrate the data:
barcols <- c('#edf8b1','#7fcdbb','#2c7fb8') barplot(oni$ONI, names.arg = oni$Date, ylab = "Oceanic Nino Index" , col = barcols[oni$phase], border = NA, space = 0, xaxt = "n")
The idea for this package borrows heavily from the rpdo
package. rsoi
now supercedes rpdo
as a source of data in R for Pacific Decadal Oscillation.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.