-
Notifications
You must be signed in to change notification settings - Fork 0
/
plots.R
134 lines (100 loc) · 4.44 KB
/
plots.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
#read data in
jennings<-read.csv(file="jennings.csv", header=TRUE)
#had to use a dummy scale to make the simulations work in programita
#let's correct that now
jennings$dist<-jennings$Scale/2
library(ggplot2)
bivg12_jennings.plot<- ggplot(jennings, aes(x=dist, y=g12r))+
#first line
geom_line(size=1, color="black")+
geom_point(pch=21, size=2, color="black", fill="black")+
#next line
geom_line(aes(x=dist, y=E12m), size=1, linetype="solid", color="grey")+
#next line
geom_line(aes(x=dist, y=E12p), size=1, linetype="solid", color="grey")+
theme_bw()+
coord_cartesian(ylim=c(0, 7.5)) +
ylab(bquote(g[12](r))) + xlab("Distance (m)") +
scale_x_continuous(breaks = pretty(jennings$dist, n = 10)) +
scale_y_continuous(breaks = pretty(jennings$g12r, n = 10))
bivg12_jennings.plot
pearson <- read.csv("~/Desktop/Research/Fieldwork Spreadsheets/Fall 2018/Excel Files for Analysis/pearsonbivariate.csv")
pearson$dist<-pearson$Scale/10
bivg12_pearson.plot<- ggplot(pearson, aes(x=dist, y=g12r))+
#first line
geom_line(size=1, color="black")+
geom_point(pch=21, size=2, color="black", fill="black")+
#next line
geom_line(aes(x=dist, y=E12m), size=1, linetype="solid", color="grey")+
#next line
geom_line(aes(x=dist, y=E12p), size=1, linetype="solid", color="grey")+
theme_bw()+
coord_cartesian(ylim=c(0, 2)) +
ylab(bquote(g[12](r))) + xlab("Distance (m)") +
scale_x_continuous(breaks = pretty(pearson$dist, n = 10))
bivg12_pearson.plot
fpearsonuni <- read.csv("~/Desktop/Research/Fieldwork Spreadsheets/Fall 2018/Excel Files for Analysis/fpearsonunivariate.csv")
fpearsonuni$dist<-fpearsonuni$Distance/10
unig11_pearson.plot<- ggplot(fpearsonuni, aes(x=dist, y=g11r))+
#first line
geom_line(size=1, color="black")+
geom_point(pch=21, size=2, color="black", fill="black")+
#next line
geom_line(aes(x=dist, y=E11m), size=1, linetype="solid", color="grey")+
#next line
geom_line(aes(x=dist, y=E11p), size=1, linetype="solid", color="grey")+
theme_bw()+
coord_cartesian(ylim=c(0, 5)) +
ylab(bquote(g(r))) + xlab("Distance (m)") +
scale_x_continuous(breaks = pretty(fpearsonuni$dist, n = 10))
unig11_pearson.plot
fjenningsuni<-read.csv("~/Desktop/Research/Fieldwork Spreadsheets/Fall 2018/Excel Files for Analysis/fjenningsunivariate.csv")
#had to use a dummy scale to make the simulations work in programita
#let's correct that now
fjenningsuni$dist<-fjenningsuni$Distance/2
unig11_jennings.plot<- ggplot(fjenningsuni, aes(x=dist, y=g11r))+
#first line
geom_line(size=1, color="black")+
geom_point(pch=21, size=2, color="black", fill="black")+
#next line
geom_line(aes(x=dist, y=E11m), size=1, linetype="solid", color="grey")+
#next line
geom_line(aes(x=dist, y=E11p), size=1, linetype="solid", color="grey")+
theme_bw()+
coord_cartesian(ylim=c(0, 50)) +
ylab(bquote(g(r))) + xlab("Distance (m)") +
scale_x_continuous(breaks = pretty(fjenningsuni$dist, n = 10))
unig11_jennings.plot
hjenningsuni<-read.csv("~/Desktop/Research/Fieldwork Spreadsheets/Fall 2018/Excel Files for Analysis/hjenningsunivariate.csv")
#had to use a dummy scale to make the simulations work in programita
#let's correct that now
hjenningsuni$dist<-hjenningsuni$Distance/2
hunig11_jennings.plot<- ggplot(hjenningsuni, aes(x=dist, y=g11r))+
#first line
geom_line(size=1, color="black")+
geom_point(pch=21, size=2, color="black", fill="black")+
#next line
geom_line(aes(x=dist, y=E11m), size=1, linetype="solid", color="grey")+
#next line
geom_line(aes(x=dist, y=E11p), size=1, linetype="solid", color="grey")+
theme_bw()+
coord_cartesian(ylim=c(0, 10)) +
ylab(bquote(g(r))) + xlab("Distance (m)") +
scale_x_continuous(breaks = pretty(hjenningsuni$dist, n = 10))
hunig11_jennings.plot
hpearsonuni <- read.csv("~/Desktop/Research/Fieldwork Spreadsheets/Fall 2018/Excel Files for Analysis/hpearsonunivariate.csv")
hpearsonuni$dist<-hpearsonuni$Distance/10
hunig11_pearson.plot<- ggplot(hpearsonuni, aes(x=dist, y=g11r))+
#first line
geom_line(size=1, color="black")+
geom_point(pch=21, size=2, color="black", fill="black")+
#next line
geom_line(aes(x=dist, y=E11m), size=1, linetype="solid", color="grey")+
#next line
geom_line(aes(x=dist, y=E11p), size=1, linetype="solid", color="grey")+
theme_bw()+
coord_cartesian(ylim=c(0, 5)) +
ylab(bquote(g(r))) + xlab("Distance (m)") +
scale_x_continuous(breaks = pretty(hpearsonuni$dist, n = 10))
hunig11_pearson.plot
#damn, daniel. this one doesn't appear to aggregate! :(