Skip to content

Commit 319e2b4

Browse files
Fig tweaks
1 parent 1f7ef76 commit 319e2b4

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

resistingrhythm/analysis/fig1.key

-71.5 KB
Binary file not shown.

resistingrhythm/analysis/paper_figures_v4.Rmd

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ bind_rows(results220, results222) %>%
372372
group_by(synapse, osc_rate) %>%
373373
mutate(M=mean(kappa_coord), SD=sd(kappa_coord)) %>%
374374
ggplot(mapping=aes(x=osc_rate, y=M, group=osc_rate, color=synapse)) +
375-
geom_point(size=0.8) +
375+
geom_point(size=1.25) +
376376
geom_errorbar(mapping=aes(x=osc_rate, ymin=M - SD, ymax=M + SD, color=synapse),
377377
width=.15, size=0.2) +
378378
scale_color_manual(values=c("black", "grey")) +
@@ -389,7 +389,7 @@ bind_rows(results221, results223) %>%
389389
group_by(synapse, osc_rate) %>%
390390
mutate(M=mean(kappa_coord), SD=sd(kappa_coord)) %>%
391391
ggplot(mapping=aes(x=osc_rate, y=M, group=osc_rate, color=synapse)) +
392-
geom_point(size=0.8) +
392+
geom_point(size=1.25) +
393393
geom_errorbar(mapping=aes(x=osc_rate, ymin=M - SD, ymax=M + SD, color=synapse),
394394
width=.15, size=0.2) +
395395
scale_color_manual(values=c("black", "grey")) +
@@ -406,7 +406,7 @@ bind_rows(results220, results222) %>%
406406
group_by(synapse, osc_rate) %>%
407407
mutate(M=mean(rate_k), SD=sd(rate_k)) %>%
408408
ggplot(mapping=aes(x=osc_rate, y=M, group=osc_rate, color=synapse)) +
409-
geom_point(size=0.8) +
409+
geom_point(size=1.25) +
410410
geom_errorbar(mapping=aes(x=osc_rate, ymin=M - SD, ymax=M + SD, color=synapse),
411411
width=.15, size=0.2) +
412412
scale_color_manual(values=c("black", "grey")) +
@@ -425,7 +425,7 @@ bind_rows(results221, results223) %>%
425425
group_by(synapse, osc_rate) %>%
426426
mutate(M=mean(rate_k), SD=sd(rate_k)) %>%
427427
ggplot(mapping=aes(x=osc_rate, y=M, group=osc_rate, color=synapse)) +
428-
geom_point(size=0.8) +
428+
geom_point(size=1.25) +
429429
geom_errorbar(mapping=aes(x=osc_rate, ymin=M - SD, ymax=M + SD, color=synapse),
430430
width=.15, size=0.2) +
431431
scale_color_manual(values=c("black", "grey"), name="Tonic") +
@@ -446,7 +446,7 @@ bind_rows(results224, results227) %>%
446446
group_by(synapse, osc_rate) %>%
447447
mutate(M=mean(kappa_coord), SD=sd(kappa_coord)) %>%
448448
ggplot(mapping=aes(x=osc_rate, y=M, group=osc_rate, color=synapse)) +
449-
geom_point(size=0.8) +
449+
geom_point(size=1.25) +
450450
geom_errorbar(mapping=aes(x=osc_rate, ymin=M - SD, ymax=M + SD, color=synapse),
451451
width=.15, size=0.2) +
452452
scale_color_manual(values=c("darkgoldenrod3", "goldenrod1")) +
@@ -463,15 +463,15 @@ bind_rows(results224, results227) %>%
463463
group_by(synapse, osc_rate) %>%
464464
mutate(M=mean(rate_k), SD=sd(rate_k)) %>%
465465
ggplot(mapping=aes(x=osc_rate, y=M, group=osc_rate, color=synapse)) +
466-
geom_point(size=0.8) +
466+
geom_point(size=1.25) +
467467
geom_errorbar(mapping=aes(x=osc_rate, ymin=M - SD, ymax=M + SD, color=synapse),
468468
width=.15, size=0.2) +
469469
scale_color_manual(values=c("darkgoldenrod3", "goldenrod1"), name="Burst") +
470470
labs(title="e.", y="Pop. rate", x="Osc. rate") +
471471
lims(y=c(0.0, 180.0)) +
472472
theme_classic2() +
473473
theme(
474-
legend.position = c(1.35, .5),
474+
legend.position = c(1.5, -1.25),
475475
legend.title = element_text(colour = 'darkgoldenrod3'),
476476
legend.background = element_rect(colour ="black"),
477477
legend.key.size = unit(.5, "cm"),
@@ -516,14 +516,14 @@ p11 <- textGrob("Excitability")
516516
# -
517517
layout_matrix <- rbind(
518518
c(NA, 8, 8, 8, NA, 9, 9, 9, 9, 9, 9, NA, NA),
519-
c(11, 3, 3, 3, NA, 4, 4, 4, 6, 6, 6, NA, NA),
520-
c(11, 3, 3, 3, NA, 4, 4, 4, 6, 6, 6, NA, NA),
521-
c(11, 3, 3, 3, NA, 4, 4, 4, 6, 6, 6, NA, NA),
519+
c(11, 3, 3, 3, NA, 4, 4, 4, 6, 6, 6, 7, 7),
520+
c(11, 3, 3, 3, NA, 4, 4, 4, 6, 6, 6, 7, 7),
521+
c(11, 3, 3, 3, NA, 4, 4, 4, 6, 6, 6, 7, 7),
522522
c(11, 3, 3, 3, NA, 4, 4, 4, 6, 6, 6, 7, 7),
523523
c(10, 1, 1, 1, NA, 2, 2, 2, 5, 5, 5, 7, 7),
524-
c(10, 1, 1, 1, NA, 2, 2, 2, 5, 5, 5, 7, 7),
525-
c(10, 1, 1, 1, NA, 2, 2, 2, 5, 5, 5, 7, 7),
526-
c(10, 1, 1, 1, NA, 2, 2, 2, 5, 5, 5, 7, 7)
524+
c(10, 1, 1, 1, NA, 2, 2, 2, 5, 5, 5, NA, NA),
525+
c(10, 1, 1, 1, NA, 2, 2, 2, 5, 5, 5, NA, NA),
526+
c(10, 1, 1, 1, NA, 2, 2, 2, 5, 5, 5, NA, NA)
527527
)
528528
grid.arrange(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, layout_matrix=layout_matrix)
529529
@@ -563,7 +563,7 @@ tmp2$mode <- rep("Homeostatsis", nrow(tmp2))
563563
# Kappa
564564
bind_rows(tmp1, tmp2) %>%
565565
ggplot(mapping=aes(x=M_kappa, y=M_error, color=mode)) +
566-
geom_point(size=0.2) +
566+
geom_point(size=1.25) +
567567
geom_errorbar(mapping=aes(x=M_kappa, ymin=M_error - SD_error, ymax=M_error + SD_error),
568568
width=0.004, size=0.2) +
569569
geom_errorbarh(mapping=aes(y=M_error, xmin=M_kappa - SD_kappa, xmax=M_kappa + SD_kappa),
@@ -615,7 +615,7 @@ tmp2$mode <- rep("Homeostatsis", nrow(tmp2))
615615
# Kappa
616616
bind_rows(tmp1, tmp2) %>%
617617
ggplot(mapping=aes(x=M_kappa, y=M_error, color=mode)) +
618-
geom_point(size=0.2) +
618+
geom_point(size=1.25) +
619619
geom_errorbar(mapping=aes(x=M_kappa, ymin=M_error - SD_error, ymax=M_error + SD_error),
620620
width=0.004, size=0.2) +
621621
geom_errorbarh(mapping=aes(y=M_error, xmin=M_kappa - SD_kappa, xmax=M_kappa + SD_kappa),
@@ -719,7 +719,7 @@ rbind(results231, results232) %>%
719719
geom_boxplot(size=0.6) +
720720
stat_compare_means(method="wilcox.test", label="p.signif",
721721
label.x=1.3, size=3, show.legend=FALSE) +
722-
labs(title="c.", y="Pop. rate", x=TeX("$t_{oscillation} / \\tau_{homeostasis}$")) +
722+
labs(title="c.", y="Pop. rate", x=TeX("$t_{oscillation} / \\tau_{h}$")) +
723723
scale_color_manual(values=c("black", "grey"), name=NA) +
724724
theme_classic2() +
725725
theme(

0 commit comments

Comments
 (0)