knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-" )
rpdo
has been superseded by the rsoi
package which includes the historical and most recent monthly PDO index values together with related climate indices.
rpdo
is an R data package of monthly Pacific Decadal Oscillation (PDO) index
values from r month.name[rpdo::pdo$Month[1]]
r rpdo::pdo$Year[1]
to r month.name[rpdo::pdo$Month[nrow(rpdo::pdo)]]
r rpdo::pdo$Year[nrow(rpdo::pdo)]
.
The function pdo_download()
scrapes the
data from the no longer updated http://research.jisao.washington.edu/pdo/PDO.latest.
library(rpdo) library(ggplot2) data <- rpdo::pdo data <- subset(data, data$Month == 1) ggplot(data = data, aes(x = Year, y = PDO)) + geom_smooth(span = 0.1, se = FALSE, color = "black", method = "loess") + geom_point() + ylab("January PDO Index")
To install the latest release from CRAN
install.packages("rpdo")
To install the developmental version from GitHub
# install.packages("remotes") remotes::install_github("poissonconsulting/rpdo")
For more information see http://research.jisao.washington.edu/pdo/PDO.latest.
Please report any issues.
Pull requests are always welcome.
Please note that the rpdo project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.