-
Notifications
You must be signed in to change notification settings - Fork 1
/
visFreqPlace.R
135 lines (93 loc) · 3.78 KB
/
visFreqPlace.R
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
library(tidyverse)
library(ggplot2)
library(scales)
df = read.csv("long_matrix_temp_order_seas_prec.csv")
print(df)
ggplot(df, aes(x=period, y=power)) +
geom_smooth() +
#coord_trans(x="log2")
scale_x_log10(breaks = trans_breaks("log10", function(x) 10^x),
labels = trans_format("log10", math_format(10^.x))) +
ggtitle("global distribution of frequency decompositions") +
theme_bw() +
theme(plot.title = element_text(hjust = 0.5)) +
ylab("mean spectral power") +
xlab("period (days)")
ggsave("global_distribution_of_frequency_decompositions.png")
ggplot(df, aes(x=period, y=power, color=temp, linetype=precip)) +
geom_smooth() +
#coord_trans(x="log2")
scale_x_log10(breaks = trans_breaks("log10", function(x) 10^x),
labels = trans_format("log10", math_format(10^.x))) +
ggtitle("global frequency decompositions - by order") +
theme_bw() +
theme(plot.title = element_text(hjust = 0.5)) +
ylab("mean spectral power")
xlab("period")
ggsave("global_freq_decomp_stream_order.png")
ggplot(df, aes(x=period, y=power, color=seasonality)) +
geom_smooth() +
#coord_trans(x="log2")
scale_x_log10(breaks = trans_breaks("log10", function(x) 10^x),
labels = trans_format("log10", math_format(10^.x))) +
ggtitle("global frequency decompositions - by precipitation seasonality") +
theme_bw() +
theme(plot.title = element_text(hjust = 0.5)) +
ylab("mean spectral power")
xlab("period")
ggsave("global_freq_decomp_seasonality.png")
ggplot(df, aes(x=period, y=power, color=temp)) +
geom_smooth() +
#coord_trans(x="log2")
scale_x_log10(breaks = trans_breaks("log10", function(x) 10^x),
labels = trans_format("log10", math_format(10^.x))) +
ggtitle("global frequency decompositions - by temperature") +
theme_bw() +
theme(plot.title = element_text(hjust = 0.5)) +
ylab("mean spectral power")
xlab("period")
ggsave("global_freq_decomp_temp.png")
ggplot(df, aes(x=period, y=power, color=precip)) +
geom_smooth() +
#coord_trans(x="log2")
scale_x_log10(breaks = trans_breaks("log10", function(x) 10^x),
labels = trans_format("log10", math_format(10^.x))) +
ggtitle("global frequency decompositions - by precipitation") +
theme_bw() +
theme(plot.title = element_text(hjust = 0.5)) +
ylab("mean spectral power")
xlab("period")
ggsave("global_freq_decomp_precip.png")
ggplot(df, aes(x=period, y=power, color=temp, linetype=precip)) +
geom_smooth() +
#coord_trans(x="log2")
scale_x_log10(breaks = trans_breaks("log10", function(x) 10^x),
labels = trans_format("log10", math_format(10^.x))) +
ggtitle("global frequency decompositions - by precipitation and temperature") +
theme_bw() +
theme(plot.title = element_text(hjust = 0.5)) +
ylab("mean spectral power")
xlab("period")
ggsave("global_freq_decomp_temp_and_precip.png")
ggplot(df, aes(x=period, y=power, color=temp, linetype=order)) +
geom_smooth() +
#coord_trans(x="log2")
scale_x_log10(breaks = trans_breaks("log10", function(x) 10^x),
labels = trans_format("log10", math_format(10^.x))) +
ggtitle("global frequency decompositions - by stream order and temperature") +
theme_bw() +
theme(plot.title = element_text(hjust = 0.5)) +
ylab("mean spectral power")
xlab("period")
ggsave("global_freq_decomp_temp_and_size.png")
ggplot(df, aes(x=period, y=power, color=temp, linetype=seasonality)) +
geom_smooth() +
#coord_trans(x="log2")
scale_x_log10(breaks = trans_breaks("log10", function(x) 10^x),
labels = trans_format("log10", math_format(10^.x))) +
ggtitle("global frequency decompositions - by precipitation seasonality and temperature") +
theme_bw() +
theme(plot.title = element_text(hjust = 0.5)) +
ylab("mean spectral power")
xlab("period")
ggsave("global_freq_decomp_temp_and_seasonality.png")