-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPresentation_Precipitation_Germany.Rmd
46 lines (32 loc) · 1.2 KB
/
Presentation_Precipitation_Germany.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
---
title: "Introducktion: Precipitation in Germany"
author: "Annika Ludwig"
date: "24 10 2019"
output: beamer_presentation
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE)
```
## Precipitation
Precipitation is any liquid or frozen water that forms in the atmosphere and falls to the Earth. It is **one of the three main steps of the global water cycle.**
Precipitation is any liquid or frozen water that forms in the atmosphere and falls back to the Earth.
It comes in many forms, like rain,sleet,and snow.
Along with evaporation and condensation, precipitation
is one of the three major parts of the global water cycle.
Source <https://www.nationalgeographic.org/encyclopedia/precipitation/>
## Precipitation

## Precipitation in Germany
```{r , echo = FALSE, warning=FALSE, message=FALSE}
library(raster)
germany <- getData("GADM", country="DEU", level=2)
prec <- getData("worldclim", var="prec", res=.5,lon=10,lat=51)
prec_ger1 <- crop(prec,germany)
prec_ger2 <- mask(prec_ger1, germany)
prev_avg <- cellStats(prec_ger2, stat="mean")
plot(prev_avg, pch=19,cex=2, col="#00ff0060")
```
## Summary Precipitation
```{r}
summary(prev_avg)
```