-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathREADME.Rmd
95 lines (73 loc) · 2.75 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
---
title: "README"
output: github_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(
echo = TRUE,
fig.path = "man/figures/",
comment = "#>"
)
```
## climateStripes
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:
* [Warming Stripes](#warming-stripes) (annual deviation from the average temperature in the years 1961-1990 as colored bars)
* [Precipitation Stripes](#precipitation-stripes) (annual deviation from the average total precipitation in the years 1961-1990 as colored bars)
* [Wind Speed Stripes](#wind-speed-stripes) (annual deviation from the average wind speed in the years 1961-1990 as colored bars)
* [Sunshine Duration Stripes](#precipitation-stripes) (annual deviation from the average daily sunshine duration in the years 1961-1990 as colored bars)
(Most recent additions may be found in the develop-branch.)
### How to install the package and use it
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:
```r
library(devtools)
install()
require("climateStripes")
climateStripes(city.name = "rostock")
```
### Examples: How to create different climate plots
#### Warming Stripes
```r
library(devtools)
install()
require("climateStripes")
climateStripes(city.name = "rostock", plot.what = "warmingstripes")
```
```{r, out.width='100%', fig.align='center', fig.cap='', echo=FALSE}
knitr::include_graphics("man/figures/WarmingStripes.png")
knitr::include_graphics("man/figures/WarmingPoints.png")
```
#### Precipitation Stripes
```r
library(devtools)
install()
require("climateStripes")
climateStripes(city.name = "rostock", plot.what = "precipitationstripes")
```
```{r, out.width='100%', fig.align='center', fig.cap='', echo=FALSE}
knitr::include_graphics("man/figures/PrecipitationStripes.png")
knitr::include_graphics("man/figures/PrecipitationPoints.png")
```
#### Wind Speed Stripes
```r
library(devtools)
install()
require("climateStripes")
climateStripes(city.name = "rostock", plot.what = "windspeedstripes")
```
```{r, out.width='100%', fig.align='center', fig.cap='', echo=FALSE}
knitr::include_graphics("man/figures/WindspeedStripes.png")
knitr::include_graphics("man/figures/WindspeedPoints.png")
```
#### Sunshine Duration Stripes
```r
library(devtools)
install()
require("climateStripes")
climateStripes(city.name = "rostock", plot.what = "sunshinedurationstripes")
```
```{r, out.width='100%', fig.align='center', fig.cap='', echo=FALSE}
knitr::include_graphics("man/figures/SunshineStripes.png")
knitr::include_graphics("man/figures/SunshinePoints.png")
```