Skip to content

Commit

Permalink
rename and reknit
Browse files Browse the repository at this point in the history
  • Loading branch information
Enchufa2 committed Oct 20, 2021
1 parent 29a3bf0 commit 2a6e9de
Show file tree
Hide file tree
Showing 4 changed files with 3,880 additions and 3,687 deletions.
3,685 changes: 0 additions & 3,685 deletions analysis.html

This file was deleted.

5 changes: 4 additions & 1 deletion analysis-fig.R → figs.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
source(knitr::purl("analysis.Rmd", output=tempfile()))
source(knitr::purl("index.Rmd", output=tempfile()))

ggplot(df.plot.papers) +
aes(yearmon+2017, n) + facet_wrap(~category, scales="free_y") +
Expand All @@ -8,6 +8,7 @@ ggplot(df.plot.papers) +
zoo::scale_x_yearmon(format="%Y") +
labs(y="Number of papers per month", x=NULL)
ggsave("img/Fig1.eps", width=190.5, height=100, units="mm", scale=1.6, device=cairo_ps)
ggsave("img/Fig1.tiff", width=190.5, height=100, units="mm", scale=1.6)

ggplot(df.plot.p_male) +
aes(yearmon+2017, p_male) + facet_wrap(~category) +
Expand All @@ -18,6 +19,7 @@ ggplot(df.plot.p_male) +
expand_limits(y=1) +
labs(y="Proportion of male authors", x=NULL)
ggsave("img/Fig2.eps", width=190.5, height=100, units="mm", scale=1.6, device=cairo_ps)
ggsave("img/Fig2.tiff", width=190.5, height=100, units="mm", scale=1.6)

ggplot(filter(df.terms, type=="GLMM" | is.na(type))) +
aes(estimate, term, xmin=conf.low, xmax=conf.high, color=type) +
Expand All @@ -31,6 +33,7 @@ ggplot(filter(df.terms, type=="GLMM" | is.na(type))) +
labs(y=NULL, x="Odds ratio", color="Model") +
theme(legend.position="none")
ggsave("img/Fig3.eps", width=132, height=100, units="mm", scale=1.6, device=cairo_ps)
ggsave("img/Fig3.tiff", width=132, height=100, units="mm", scale=1.6)

ggplot(df.re.category) +
aes(estimate, term, xmin=conf.low, xmax=conf.high, color=group) +
Expand Down
2 changes: 1 addition & 1 deletion analysis.Rmd → index.Rmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Mind the gender gap: COVID-19 lockdown effects on gender differences in research"
author: "Iñaki Úcar, Margarita Torre, Antonio Elías Fernández"
author: "Iñaki Úcar, Margarita Torre, Antonio Elías"
output:
html_document:
df_print: paged
Expand Down
3,875 changes: 3,875 additions & 0 deletions index.html

Large diffs are not rendered by default.

0 comments on commit 2a6e9de

Please sign in to comment.