regicid commited on
Commit
4ddc2b1
·
1 Parent(s): 1e6aed0
Files changed (1) hide show
  1. scripts/figures.qmd +93 -0
scripts/figures.qmd ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: "figures"
3
+ format: html
4
+ editor: visual
5
+ ---
6
+
7
+ ```{r}
8
+ data = read.csv("full_data.csv")
9
+ rubriques_lemonde = c("international","culture","politique","société","économie","sport","science/technologie","inclassable")
10
+
11
+ z = data$rubrique %in% rubriques_lemonde
12
+ data$rubrique[!z] = "inclassable"
13
+ ```
14
+
15
+ ```{r}
16
+ library(dplyr)
17
+ d = filter(data,sexe_prenom %in% c("Femme","Homme"))
18
+ d = d %>% group_by(year,sexe_prenom) %>% summarise(
19
+ mentions_men = sum(mentions_men,na.rm=T),
20
+ mentions_women = sum(mentions_women,na.rm=T)
21
+ )
22
+ d$mentions_total = d$mentions_men + d$mentions_women
23
+ ggplot(d %>% filter(mentions_women > 20),aes(year,mentions_women/mentions_total,color=sexe_prenom)) + geom_point() + ylab("Masculinité") + labs(color="Author sex")
24
+
25
+ ```
26
+ ```{r}
27
+ library(dplyr)
28
+ d = filter(data)
29
+ d = d %>% group_by(year) %>% summarise(
30
+ mentions_men = sum(citations_men,na.rm=T),
31
+ mentions_women = sum(citations_women,na.rm=T)
32
+ )
33
+ d$mentions_total = d$mentions_men + d$mentions_women
34
+ ggplot(d %>% filter(mentions_women > 20),aes(year,mentions_women/mentions_total)) + geom_line() + ylab("% women mentionned") + labs(color="Author sex") + ylim(c(0,.25))
35
+
36
+ ```
37
+
38
+
39
+ ```{r}
40
+ library(dplyr)
41
+ d = filter(data,sexe_prenom %in% c("Femme","Homme"),!rubrique %in% c("inclassable","sport"))
42
+ d = d %>% group_by(year,sexe_prenom,rubrique) %>% summarise(
43
+ mentions_men = sum(mentions_men,na.rm=T),
44
+ mentions_women = sum(mentions_women,na.rm=T)
45
+ )
46
+ d$mentions_total = d$mentions_men + d$mentions_women
47
+ ggplot(d %>% filter(mentions_women > 50),aes(year,mentions_women/mentions_total,color=sexe_prenom)) + geom_point() + ylab("% women") + facet_wrap(.~rubrique,scales="free_y") + labs(color="Author sex")
48
+
49
+ ```
50
+
51
+
52
+ ```{r}
53
+ d = filter(data,sexe_prenom %in% c("Femme","Homme"),!rubrique %in% c("inclassable","sport")) %>% group_by(year,sexe_prenom,rubrique) %>% summarise(
54
+ mentions_men = sum(mentions_men,na.rm=T),
55
+ mentions_women = sum(mentions_women,na.rm=T)
56
+ )
57
+ d$mentions_total = d$mentions_men + d$mentions_women
58
+ d$feminity = d$mentions_women/d$mentions_total
59
+
60
+ #ggplot(d %>% filter(mentions_total > 200),aes(year,mentions_women/mentions_total,color=sexe_prenom)) + geom_point() + ylab("Masculinité")
61
+
62
+ d_bis = d %>% filter(mentions_women > 100) %>% select(year,sexe_prenom,feminity,rubrique) %>% pivot_wider(names_from = sexe_prenom, values_from = feminity, id_cols = c(rubrique, year))
63
+ ggplot(d_bis,aes(year,Femme-Homme)) + geom_point() + geom_smooth(se=F,color="black") + facet_wrap(.~rubrique,scales = "free_y")
64
+
65
+
66
+ ```
67
+
68
+
69
+
70
+
71
+
72
+ ```{r}
73
+ #Full corpus
74
+
75
+ d = filter(data,sexe_prenom %in% c("Femme","Homme")) %>% group_by(year,sexe_prenom,rubrique) %>% summarise(
76
+ mentions_men = sum(citations_men,na.rm=T),
77
+ mentions_women = sum(citations_women,na.rm = T)
78
+ )
79
+ d$mentions_total = d$mentions_men + d$mentions_women
80
+ d$feminity = d$mentions_women/d$mentions_total
81
+
82
+ #ggplot(d %>% filter(mentions_total > 200),aes(year,mentions_women/mentions_total,color=sexe_prenom)) + geom_point() + ylab("Masculinité")
83
+
84
+ d_bis = d %>% filter(mentions_total > 200) %>% select(year,sexe_prenom,feminity,rubrique) %>% pivot_wider(names_from = sexe_prenom, values_from = feminity, id_cols = c(year,rubrique))
85
+ ggplot(d_bis,aes(year,Femme/Homme)) + geom_point() + geom_smooth(se=F,color="black") + facet_wrap(.~rubrique,scales = "free_y&")
86
+
87
+
88
+ ```
89
+
90
+
91
+ Enseignements :
92
+ * Pas trop d'effet de structure rubrique (pas de grosse diff entre les sexes, à part en sport).
93
+ * De 1970 à 2000, convergence des rôles de genre ? Ou estompement d'un journalisme féministe (Nicole-Lise Bernheim) ?