@@ -38,6 +38,7 @@ par(mar=c(5,6,4,1)+.1) #fix left cutoff
38
38
# par(mar=c(7,6,6,1)+.1) #added some bottom and top to fit long y axis title (not working)
39
39
barplot(test_vals ,xlab = " Migration Rate" , ylab = " Introgression Detected (# Data Sets)" ,cex.axis = 1.7 ,cex.names = 1.2 ,cex.lab = 2.2 )
40
40
dev.off()
41
+ test_vals # for excel plotting
41
42
42
43
43
44
# ##
@@ -116,10 +117,13 @@ myPlot <- ggerrorplot(values, x = "Statistic", y = "D.or.p.Value", ylab = "Dgen
116
117
ggsave(filename = paste(paperPath ," fig_fig7b.pdf" ,sep = " " ), plot = myPlot )
117
118
118
119
120
+
121
+
119
122
# ##
120
- # wabi fig 7 NEW S3 EMBEDDING SCENARIO updated dgen
123
+ # wabi fig 7c updated dgen
121
124
# ##
122
- fileToRead = paste(figsPath ," fig7b/fig_fig7b.txt" ,sep = " " )
125
+
126
+ fileToRead = paste(figsPath ," fig7/fig_fig7.txt" ,sep = " " )
123
127
test_values = read.csv(fileToRead , header = TRUE )
124
128
125
129
# do a lil renaming
@@ -129,18 +133,18 @@ test_values[,2] = gsub("Dstat", "D-statistic", test_values[,2])
129
133
test_valuesBars = aggregate(as.integer(trimws(test_values $ Significant )== " TRUE" ), by = list (test_values $ Statistic ), FUN = sum )
130
134
test_vals <- test_valuesBars $ x
131
135
names(test_vals ) <- test_valuesBars $ Group.1
132
- pdf(paste(paperPath ," fig_fig7cNewNetWithS3 .pdf" ,sep = " " ))
136
+ pdf(paste(paperPath ," fig_fig7c .pdf" ,sep = " " ))
133
137
par(mar = c(5 ,6 ,4 ,1 )+ .1 ) # fix left cutoff
134
138
barplot(test_vals ,xlab = " Statistic Type" , ylab = " Number Of Significant p Values" ,cex.axis = 1.7 ,cex.names = 1.2 ,cex.lab = 2.2 )
135
- # , ylim=c(0,20)
136
139
dev.off()
140
+ test_vals # to make excel
141
+
137
142
138
143
139
144
# ##
140
- # wabi fig 7c updated dgen
145
+ # wabi fig 7 NEW S3 EMBEDDING SCENARIO updated dgen
141
146
# ##
142
-
143
- fileToRead = paste(figsPath ," fig7/fig_fig7.txt" ,sep = " " )
147
+ fileToRead = paste(figsPath ," fig7b/fig_fig7b.txt" ,sep = " " )
144
148
test_values = read.csv(fileToRead , header = TRUE )
145
149
146
150
# do a lil renaming
@@ -150,10 +154,14 @@ test_values[,2] = gsub("Dstat", "D-statistic", test_values[,2])
150
154
test_valuesBars = aggregate(as.integer(trimws(test_values $ Significant )== " TRUE" ), by = list (test_values $ Statistic ), FUN = sum )
151
155
test_vals <- test_valuesBars $ x
152
156
names(test_vals ) <- test_valuesBars $ Group.1
153
- pdf(paste(paperPath ," fig_fig7c .pdf" ,sep = " " ))
157
+ pdf(paste(paperPath ," fig_fig7cNewNetWithS3 .pdf" ,sep = " " ))
154
158
par(mar = c(5 ,6 ,4 ,1 )+ .1 ) # fix left cutoff
155
- barplot(test_vals ,xlab = " Statistic Type" , ylab = " Number Of Significant p Values" ,cex.axis = 1.7 ,cex.names = 1.2 ,cex.lab = 2.2 )
159
+ # barplot(test_vals,xlab = "Statistic Type", ylab="Number Of Significant p Values",cex.axis=1.7,cex.names=1.2,cex.lab=2.2)
160
+ barplot(test_vals ,xlab = " Statistic Type" , ylab = " Number Of Significant p Values" ,cex.axis = 1.7 ,cex.names = 1.2 ,cex.lab = 2.2 , ylim = c(0 ,20 ))
156
161
dev.off()
162
+ test_vals # to make excel
163
+
164
+
157
165
158
166
159
167
# ###
0 commit comments