knitr::opts_chunk$set( echo = TRUE, fig.path = "man/figures/", comment = "#>" )
R package to create diagrams that show the impact of climate change. It started with an R function to plot Warming Stripes which were inspired by Ed Hawkins. The R package can now fetch data from Deutscher Wetterdienst (DWD) and plot:
(Most recent additions may be found in the develop-branch.)
In order to create all possible plots for the DWD station in Rostock, one needs to download the package and execute the following lines of code in R:
library(devtools) install() require("climateStripes") climateStripes(city.name = "rostock")
library(devtools) install() require("climateStripes") climateStripes(city.name = "rostock", plot.what = "warmingstripes")
knitr::include_graphics("man/figures/WarmingStripes.png") knitr::include_graphics("man/figures/WarmingPoints.png")
library(devtools) install() require("climateStripes") climateStripes(city.name = "rostock", plot.what = "precipitationstripes")
knitr::include_graphics("man/figures/PrecipitationStripes.png") knitr::include_graphics("man/figures/PrecipitationPoints.png")
library(devtools) install() require("climateStripes") climateStripes(city.name = "rostock", plot.what = "windspeedstripes")
knitr::include_graphics("man/figures/WindspeedStripes.png") knitr::include_graphics("man/figures/WindspeedPoints.png")
library(devtools) install() require("climateStripes") climateStripes(city.name = "rostock", plot.what = "sunshinedurationstripes")
knitr::include_graphics("man/figures/SunshineStripes.png") knitr::include_graphics("man/figures/SunshinePoints.png")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.