-
Notifications
You must be signed in to change notification settings - Fork 0
/
05-summary.Rmd
155 lines (144 loc) · 7.25 KB
/
05-summary.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
# Summary
The St. Vrain Watershed is representative of many Colorado Front Range basins. Starting in protected, alpine reaches, it ends up winding through the flat to rolling plains, reaching almost 25 meters in width in some reaches.
These visualizations make it easy to see how bankfull width and slope are related in different portions of the catchment. By breaking this data out by EcoRegion, interesting trends an anomalies are more apparent and can provide a jumping off point for future investigation.
```{r all regions 2, eval=TRUE, echo=FALSE, warning=FALSE}
alp <- reach_attributes %>%
filter(InNetwork == 1 & MaxElevSmo > 0 &
Slope > 0 & Slope < 9
& BFwidth < 25) %>%
mutate(max_elev = MaxElevSmo/100) %>%
mutate(min_elev = MInElevSmo/100) %>%
mutate(ecoregion = case_when(max_elev > 3048 ~ "Alpine",
max_elev <= 3048 & max_elev > 2804 ~ "Subalpine Forest",
max_elev <= 2804 & max_elev > 2072 ~ "Mid-Elevation Forest",
max_elev <= 2072 & max_elev > 1706 ~ "Foothill Shrub",
max_elev <=1706 & max_elev > 1524 ~ "Front Range Fans",
max_elev <= 1524 ~ "Plains")) %>%
filter(ecoregion == "Alpine") %>%
ggplot(aes(x = BFwidth, y = Slope, color = ecoregion)) +
geom_point() +
xlim(0, 25) + ylim(0, 1.5) +
scale_fill_viridis_d() +
theme_minimal() +
labs(title = "Alpine", y = "Slope", x = "Bankfull width (m)", color = "EcoRegion") +
theme(legend.position = "none")
saf <- reach_attributes %>%
filter(InNetwork == 1 & MaxElevSmo > 0 &
Slope > 0 & Slope < 9
& BFwidth < 25) %>%
mutate(max_elev = MaxElevSmo/100) %>%
mutate(min_elev = MInElevSmo/100) %>%
mutate(ecoregion = case_when(max_elev > 3048 ~ "Alpine",
max_elev <= 3048 & max_elev > 2804 ~ "Subalpine Forest",
max_elev <= 2804 & max_elev > 2072 ~ "Mid-Elevation Forest",
max_elev <= 2072 & max_elev > 1706 ~ "Foothill Shrub",
max_elev <=1706 & max_elev > 1524 ~ "Front Range Fans",
max_elev <= 1524 ~ "Plains")) %>%
filter(ecoregion == "Subalpine Forest") %>%
ggplot(aes(x = BFwidth, y = Slope, color = ecoregion)) +
geom_point() +
xlim(0, 25) + ylim(0, 1.5) +
scale_fill_viridis_d() +
theme_minimal() +
labs(title = "Subalpine Forest", y = "Slope", x = "Bankfull width (m)", color = "EcoRegion") +
theme(legend.position = "none")
mef <- reach_attributes %>%
filter(InNetwork == 1 & MaxElevSmo > 0 &
Slope > 0 & Slope < 9
& BFwidth < 25) %>%
mutate(max_elev = MaxElevSmo/100) %>%
mutate(min_elev = MInElevSmo/100) %>%
mutate(ecoregion = case_when(max_elev > 3048 ~ "Alpine",
max_elev <= 3048 & max_elev > 2804 ~ "Subalpine Forest",
max_elev <= 2804 & max_elev > 2072 ~ "Mid-Elevation Forest",
max_elev <= 2072 & max_elev > 1706 ~ "Foothill Shrub",
max_elev <=1706 & max_elev > 1524 ~ "Front Range Fans",
max_elev <= 1524 ~ "Plains")) %>%
filter(ecoregion == "Mid-Elevation Forest") %>%
ggplot(aes(x = BFwidth, y = Slope, color = ecoregion)) +
geom_point() +
xlim(0, 25) + ylim(0, 1.5) +
scale_fill_viridis_d() +
theme_minimal() +
labs(title = "Mid-Elevation Forest", y = "Slope", x = "Bankfull width (m)", color = "EcoRegion") +
theme(legend.position = "none")
fs <- reach_attributes %>%
filter(InNetwork == 1 & MaxElevSmo > 0 &
Slope > 0 & Slope < 9
& BFwidth < 25) %>%
mutate(max_elev = MaxElevSmo/100) %>%
mutate(min_elev = MInElevSmo/100) %>%
mutate(ecoregion = case_when(max_elev > 3048 ~ "Alpine",
max_elev <= 3048 & max_elev > 2804 ~ "Subalpine Forest",
max_elev <= 2804 & max_elev > 2072 ~ "Mid-Elevation Forest",
max_elev <= 2072 & max_elev > 1706 ~ "Foothill Shrub",
max_elev <=1706 & max_elev > 1524 ~ "Front Range Fans",
max_elev <= 1524 ~ "Plains")) %>%
filter(ecoregion == "Foothill Shrub") %>%
ggplot(aes(x = BFwidth, y = Slope, color = ecoregion)) +
geom_point() +
xlim(0, 25) + ylim(0, 1.5) +
scale_fill_viridis_d() +
theme_minimal() +
labs(title = "Foothill Shrub", y = "Slope", x = "Bankfull width (m)", color = "EcoRegion") +
theme(legend.position = "none")
frf <- reach_attributes %>%
filter(InNetwork == 1 & MaxElevSmo > 0 &
Slope > 0 & Slope < 9
& BFwidth < 25) %>%
mutate(max_elev = MaxElevSmo/100) %>%
mutate(min_elev = MInElevSmo/100) %>%
mutate(ecoregion = case_when(max_elev > 3048 ~ "Alpine",
max_elev <= 3048 & max_elev > 2804 ~ "Subalpine Forest",
max_elev <= 2804 & max_elev > 2072 ~ "Mid-Elevation Forest",
max_elev <= 2072 & max_elev > 1706 ~ "Foothill Shrub",
max_elev <=1706 & max_elev > 1524 ~ "Front Range Fans",
max_elev <= 1524 ~ "Plains")) %>%
filter(ecoregion == "Front Range Fans") %>%
ggplot(aes(x = BFwidth, y = Slope, color = ecoregion)) +
geom_point() +
xlim(0, 25) + ylim(0, 1.5) +
scale_fill_viridis_d() +
theme_minimal() +
labs(title = "Front Range Fans", y = "Slope", x = "Bankfull width (m)", color = "EcoRegion") +
theme(legend.position = "none")
plns <- reach_attributes %>%
filter(InNetwork == 1 & MaxElevSmo > 0 &
Slope > 0 & Slope < 9
& BFwidth < 25) %>%
mutate(max_elev = MaxElevSmo/100) %>%
mutate(min_elev = MInElevSmo/100) %>%
mutate(ecoregion = case_when(max_elev > 3048 ~ "Alpine",
max_elev <= 3048 & max_elev > 2804 ~ "Subalpine Forest",
max_elev <= 2804 & max_elev > 2072 ~ "Mid-Elevation Forest",
max_elev <= 2072 & max_elev > 1706 ~ "Foothill Shrub",
max_elev <=1706 & max_elev > 1524 ~ "Front Range Fans",
max_elev <= 1524 ~ "Plains")) %>%
filter(ecoregion == "Plains") %>%
ggplot(aes(x = BFwidth, y = Slope, color = ecoregion)) +
geom_point() +
xlim(0, 25) + ylim(0, 1.5) +
scale_fill_viridis_d() +
theme_minimal() +
labs(title = "Plains", y = "Slope", x = "Bankfull width (m)", color = "EcoRegion") +
theme(legend.position = "none")
(alp|saf)/(mef|fs)/(frf|plns)
```
```{r summary, eval=TRUE, echo=FALSE}
reach_attributes %>%
filter(InNetwork == 1 & MaxElevSmo > 0 & BFwidth < 30) %>%
mutate(max_elev = MaxElevSmo/100) %>%
mutate(min_elev = MInElevSmo/100) %>%
ggplot() +
geom_point(aes(y = max_elev, x = BFwidth, color = TotDASqKm, size = TotDASqKm)) +
guides(color = guide_legend(), size = guide_legend()) +
theme_minimal() +
labs(fill = 'Total Upstream Drainage Area (sqKm)',
y = 'Max Elevation (m)',
x = 'Bankfull Width (m)',
color = 'Total Upstream Drainage Area (sqKm)',
size = 'Total Upstream Drainage Area (sqKm)') +
scale_color_viridis(option = "viridis") +
theme_minimal() +
theme(legend.position = "bottom")
```