-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstudent_survey.Rmd
1693 lines (1420 loc) · 57.6 KB
/
student_survey.Rmd
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
---
title: "Taskforce 3 Data Analysis Subgroup Report - Review 2"
author: "Laetitia, Giulia, John, Winfred"
output:
html_document:
code_folding: hide
toc: true
toc_float: true
pdf_document:
toc: true
---
# Data analysis approach
This subgroup of ERC Taskforce 3 (Training) analysed and interpreted results of the student and programme staff surveys. When data was made available, analysts downloaded anonymised data to their local computers (students survey) from the OneDrive folder it was shared through, and kept identifiable data in the folder (programme staff survey).
All four analysts were assigned a number of questions to analyse. Analyses were then collated. All analyses were conducted using R version 4.1.0 and RStudio Build 554.
For quantitative questions, where responses were multiple choice, data was tallied and plotted with bar charts, subsetting the results by the year of study of the respondent, using package 'ggplot2' version 3.3.6. Open questions were read by the assigned analyst. Key themes were extracted, and data was reassigned to newly defined categories and plotted with bar charts. The code used is shared below for transparency (toggle 'code').
# Student survey
```{r, message=FALSE, warning=FALSE}
# Loading necessary packages
library(readxl)
library(ggplot2)
library(dplyr)
library(tidyr)
library(formatR)
library(gt)
```
```{r, echo = FALSE, warning=FALSE}
library(knitr)
opts_chunk$set(tidy.opts=list(width.cutoff=30),tidy=TRUE)
```
```{r, message = FALSE, warning=FALSE}
# Loading the data
student_survey_responses <- as.data.frame(read_excel(
"/Users/giuliapiazza/Desktop/OneDrive - University College London/PhD/TC3_Wellcome/Student survey-task-force-3.xlsx"
))
y4 = which(student_survey_responses[6] == "Year 4") # remove a year 4 from dataset as suggested by reviewer
student_survey_responses = student_survey_responses[-35,]
```
```{r, message = FALSE, warning=FALSE}
student_survey_responses_q1_clean <- na.omit(data.frame("Year" = as.factor(student_survey_responses[, 6])))
n_q1 <- length(student_survey_responses_q1_clean[, 1]) #get the sample size for Q1
plot_q1 <- ggplot(data = student_survey_responses_q1_clean,
mapping = aes (x = Year, fill = Year)) +
geom_bar(color = "black") + #barcharts
labs(
title = " Which year of your PhD are you in (n = 35) ?",
x = "Answer",
y = "Count",
color = "Answer"
) +
theme_classic() +
theme(legend.position = "none") +
scale_fill_brewer(palette = "Accent") +
geom_text(stat='count', aes(label=..count..), vjust=-1) + ylim(0,18)
q1_table = as.data.frame(table(student_survey_responses_q1_clean))
names(q1_table) = c('Year', 'Count')
plot_q1
ggsave("Figure3_r2.eps", plot = plot_q1, width = 15.93, height = 11.38, units = "cm")
```
## Awareness of training
Key points:
- Most people reported being informed of training possibilities across all years
- Most students reported knowing where to find information about training
- Most students said registering for training was easy
- Students reported Wellcome made them aware of possible training in comparable numbers (although more indicated they Wellcome did not); a difference can be seen in the Year 3 group, who indicated largely being informed of Wellcome training.
```{r, message=FALSE}
student_survey_responses_q3_clean <-
na.omit(data.frame(
"Year" = as.factor(student_survey_responses[, 6]),
"Q3" = as.factor(student_survey_responses[, 8])
)) #create a dataframe with Q1 and Q3 and remove NA values in answers to Q3
n_q3 <-
length(student_survey_responses_q3_clean[, 1]) #get the sample size for Q3
student_survey_responses_q3_clean$Q3 <-
factor(
student_survey_responses_q3_clean$Q3,
levels = c("Strongly Agree", "Agree", "Neutral")
) #reorder the levels of Q3 in the way we want to present them
plot_q3_full <- ggplot(data = student_survey_responses_q3_clean,
mapping = aes (x = Q3, fill = Q3)) +
geom_bar(color = "black") +
labs(
x = "Answer",
y = "Count",
fill = "Answer") +
scale_fill_brewer(palette = "Accent") + theme_classic() +
theme(axis.text.x = element_text(angle = 90),
legend.position = "none", axis.title.x = element_blank())+
geom_text(stat='count', aes(label=..count..), vjust=-1) + ylim(0,20)
plot_q3 <- ggplot(data = student_survey_responses_q3_clean,
mapping = aes (x = Q3, fill = Q3)) +
geom_bar(color = "black") + #barcharts
facet_wrap( ~ Year) + # create a different plot for each Year
labs(
x = "Answer",
y = "Count",
fill = "Answer") +
scale_fill_brewer(palette = "Paired") + theme_classic() +
theme(axis.text.x = element_text(angle = 90),
legend.position = "none",
axis.title.x = element_blank())+
geom_text(stat='count', aes(label=..count..), vjust=-1) + ylim(0,10)
q3_table = student_survey_responses_q3_clean %>% group_by(Year, Q3) %>% summarise(count =
n())
gridExtra::grid.arrange(plot_q3_full,
plot_q3,
ncol = 2,
top = "I was informed about upcoming training possibilities (n = 32)")
```
```{r, message=FALSE}
student_survey_responses_q2_clean <-
na.omit(data.frame(
"Year" = as.factor(student_survey_responses[, 6]),
"Q2" = as.factor(student_survey_responses[, 7])
)) #create a dataframe with Q1 and Q2 and remove NA values in answers to Q2
n_q2 <-
length(student_survey_responses_q2_clean[, 1]) #get the sample size for Q2
student_survey_responses_q2_clean$Q2 <-
factor(student_survey_responses_q2_clean$Q2, levels = c("Yes", "No"))
#reorder the levels of Q2 in the way we want to present them "
plot_q2_full <- ggplot(data = student_survey_responses_q2_clean,
mapping = aes (x = Q2, fill = Q2)) +
geom_bar(color = "black") +
labs(
x = "Answer",
y = "Count",
fill = "Answer") +
scale_fill_brewer(palette = "Accent") + theme_classic() +
theme(axis.text.x = element_text(angle = 90),
legend.position = "none",
axis.title.x = element_blank())+
geom_text(stat='count', aes(label=..count..), vjust=-1) + ylim(0,32)
plot_q2 <- ggplot(data = student_survey_responses_q2_clean,
mapping = aes (x = Q2, fill = Q2)) +
geom_bar(color = "black") + #barcharts
facet_wrap( ~ Year) + # create a different plot for each Year
labs(
x = "Answer",
y = "Count",
fill = "Answer") +
scale_fill_brewer(palette = "Paired") + theme_classic() +
theme(axis.text.x = element_text(angle = 90),
legend.position = "none",
axis.title.x = element_blank())+
geom_text(stat='count', aes(label=..count..), vjust=-1) + ylim(0,15)
q2_table = student_survey_responses_q2_clean %>% group_by(Year, Q2) %>% summarise(count =
n())
Fig4 = gridExtra::grid.arrange(plot_q2_full,
plot_q2,
ncol = 2,
top = "I know where to find information about the training offered (n = 35)")
ggsave("Figure4_r2.eps", plot = Fig4, width = 15.93, height = 11.28 , units = "cm")
```
```{r, message=FALSE}
student_survey_responses_q4_clean <-
na.omit(data.frame(
"Year" = as.factor(student_survey_responses[, 6]),
"Q4" = as.factor(student_survey_responses[, 9])
)) #create a dataframe with Q1 and Q4 and remove NA values in answers to Q4
n_q4 <-
length(student_survey_responses_q4_clean[, 1]) #get the sample size for Q4
student_survey_responses_q4_clean$Q4 <-
factor(student_survey_responses_q4_clean$Q4, levels = c("Yes", "No"))
#reorder the levels of Q4 in the way we want to present them "
plot_q4_full <- ggplot(data = student_survey_responses_q4_clean,
mapping = aes (x = Q4, fill = Q4)) +
geom_bar(color = "black") +
labs(
x = "Answer",
y = "Count",
fill = "Answer") +
scale_fill_brewer(palette = "Accent") + theme_classic() +
theme(axis.text.x = element_text(angle = 90),
legend.position = "none",
axis.title.x = element_blank())+
geom_text(stat='count', aes(label=..count..), vjust=-1) + ylim(0,32)
plot_q4 <- ggplot(data = student_survey_responses_q4_clean,
mapping = aes (x = Q4, fill = Q4)) +
geom_bar(color = "black") + #barcharts
facet_wrap( ~ Year) + # create a different plot for each Year
labs(
x = "Answer",
y = "Count",
fill = "Answer") +
scale_fill_brewer(palette = "Paired") + theme_classic() +
theme(axis.text.x = element_text(angle = 90),
legend.position = "none",
axis.title.x = element_blank())+
geom_text(stat='count', aes(label=..count..), vjust=-1) + ylim(0,13)
q4_table = student_survey_responses_q4_clean %>% group_by(Year, Q4) %>% summarise(count =
n())
gridExtra::grid.arrange(plot_q4_full,
plot_q4,
ncol = 2,
top = "It is easy to register to attend training (n = 34)")
```
```{r, message = FALSE}
student_survey_responses_q5_clean <-
na.omit(data.frame(
"Year" = as.factor(student_survey_responses[, 6]),
"Q5" = as.factor(student_survey_responses[, 10])
)) #create a dataframe with Q1 and Q5 and remove NA values in answers to Q5
n_q5 <-
length(student_survey_responses_q5_clean[, 1]) #get the sample size for Q5
student_survey_responses_q5_clean$Q5 <-
factor(student_survey_responses_q5_clean$Q5, levels = c("Yes", "No"))
#reorder the levels of Q5 in the way we want to present them "
plot_q5_full <- ggplot(data = student_survey_responses_q5_clean,
mapping = aes (x = Q5, fill = Q5)) +
geom_bar(color = "black") +
labs(
x = "Answer",
y = "Count",
fill = "Answer") +
scale_fill_brewer(palette = "Accent") + theme_classic() +
theme(axis.text.x = element_text(angle = 90),
legend.position = "none",
axis.title.x = element_blank())+
geom_text(stat='count', aes(label=..count..), vjust=-1) + ylim(0,20)
plot_q5 <- ggplot(data = student_survey_responses_q5_clean,
mapping = aes (x = Q5, fill = Q5)) +
geom_bar(color = "black") + #barcharts
facet_wrap( ~ Year) + # create a different plot for each Year
labs(
x = "Answer",
y = "Count",
fill = "Answer") +
scale_fill_brewer(palette = "Paired") + theme_classic() +
theme(axis.text.x = element_text(angle = 90),
legend.position = "none",
axis.title.x = element_blank())+
geom_text(stat='count', aes(label=..count..), vjust=-1) + ylim(0,11)
q5_table = student_survey_responses_q5_clean %>% group_by(Year, Q5) %>% summarise(count =
n())
gridExtra::grid.arrange(plot_q5_full,
plot_q5,
ncol = 2,
top = "My Wellcome trust programme made me aware of training opportunities (n = 35)")
```
## Scheduling of training
Key points:
- Most people across all years agreed that training was provided at an appropriate time
- Students reported that training was not generally repeated to account for scheduling conflicts
```{r, message = FALSE}
student_survey_responses_q6_clean <-
na.omit(data.frame(
"Year" = as.factor(student_survey_responses[, 6]),
"Q6" = as.factor(student_survey_responses[, 11])
)) #create a dataframe with Q1 and Q6 and remove NA values in answers to Q6
n_q6 <-
length(student_survey_responses_q6_clean[, 1]) #get the sample size for Q6
student_survey_responses_q6_clean$Q6 <-
factor(
student_survey_responses_q6_clean$Q6,
levels = c(
"Strongly agree",
"Agree",
"Disagree",
"Strongly disagree",
"Not applicable"
)
) #reorder the levels of Q6 in the way we want to present them
plot_q6_full <- ggplot(data = student_survey_responses_q6_clean,
mapping = aes (x = Q6, fill = Q6)) +
geom_bar(color = "black") +
labs(x = "Answer", y = "Count", fill = "Answer") +
scale_fill_brewer(palette = "Accent") + theme_classic() +
theme(axis.text.x = element_text(angle = 90),
legend.position = "none",
axis.title.x = element_blank())+
geom_text(stat='count', aes(label=..count..), vjust=-1) + ylim(0,22)
plot_q6 <- ggplot(data = student_survey_responses_q6_clean,
mapping = aes (x = Q6, fill = Q6)) +
geom_bar(color = "black") + #barcharts
facet_wrap( ~ Year) +
labs(x = "Answer", y = "Count", fill = "Answer") +
scale_fill_brewer(palette = "Paired") + theme_classic() +
theme(axis.text.x = element_text(angle = 90),
legend.position = "none",
axis.title.x = element_blank())+
geom_text(stat='count', aes(label=..count..), vjust=-1) + ylim(0,10)
q6_table = student_survey_responses_q6_clean %>% group_by(Year, Q6) %>% summarise(count =
n())
Fig5 = gridExtra::grid.arrange(plot_q6_full,
plot_q6,
ncol = 2,
top = "The training is delivered at an appropriate time to provide me \n with the skills needed for my PhD project (n = 35)")
ggsave("Figure5_r2.eps", plot = Fig5, width = 15.93, height = 11.28 , units = "cm")
```
```{r, message = FALSE}
student_survey_responses_q7_clean <-
na.omit(data.frame(
"Year" = as.factor(student_survey_responses[, 6]),
"Q7" = as.factor(student_survey_responses[, 12])
)) #create a dataframe with Q1 and Q7 and remove NA values in answers to Q7
n_q7 <-
length(student_survey_responses_q7_clean[, 1]) #get the sample size for Q7
student_survey_responses_q7_clean$Q7 <-
factor(student_survey_responses_q7_clean$Q7, levels = c("Yes", "No"))
#reorder the levels of Q7 in the way we want to present them "
plot_q7_full <- ggplot(data = student_survey_responses_q7_clean,
mapping = aes (x = Q7, fill = Q7)) +
geom_bar(color= "black") +
labs(
x = "Answer",
y = "Count",
fill = "Answer") +
scale_fill_brewer(palette = "Accent") + theme_classic() +
theme(axis.text.x = element_text(angle = 90),
legend.position = "none",
axis.title.x = element_blank())+
geom_text(stat='count', aes(label=..count..), vjust=-1) + ylim(0,22)
plot_q7 <- ggplot(data = student_survey_responses_q7_clean,
mapping = aes (x = Q7, fill = Q7)) +
geom_bar(color= "black") + #barcharts
facet_wrap( ~ Year) + # create a different plot for each Year
labs(
x = "Answer",
y = "Count",
fill = "Answer") +
scale_fill_brewer(palette = "Paired") + theme_classic() +
theme(axis.text.x = element_text(angle = 90),
legend.position = "none",
axis.title.x = element_blank())+
geom_text(stat='count', aes(label=..count..), vjust=-1) + ylim(0,12)
q7_table = student_survey_responses_q7_clean %>% group_by(Year, Q7) %>% summarise(count =
n())
gridExtra::grid.arrange(plot_q7_full,
plot_q7,
ncol = 2,
top = "Training was repeated to account for scheduling conflict (n = 33)")
```
## Content of training
Key points:
- Most students did not receive training on equality and diversity; Those who did found it somewhat useful across years.
- Most students found training in professional, personal, wellbeing, engagement and career development useful, though many did not receive training in these areas.
- Technical training and cohort-specific training were considered useful or extremely useful across years.
```{r, message=FALSE}
dat_studentupdated <- student_survey_responses %>% rename('yearofstudy'=6,'trainingareas'=13,'equal_diversity'=14,'professional_dev'=15,'personal_dev'=16,'wellbeing'=17,'career_dev'=18,'tech_training'=19,'cohort_training'=20,'engage_outreach'=21,'usefulnessoftraining'=22,'trainingformat'=25) # reframe to make things easier
```
```{r, warning=FALSE, message=FALSE}
student_survey_responses_q8b_clean <-
na.omit(data.frame(
"Year" = as.factor(student_survey_responses[, 6]),
"Q8b" = as.factor(student_survey_responses[, 13])
))
mylist = unlist(sapply(
as.character(student_survey_responses_q8b_clean[, 2]),
strsplit,
split = ';',
USE.NAMES = F
)) # get all responses
Val = c(levels(as.factor(mylist))) # get unique responses
Q8b = student_survey_responses_q8b_clean %>%
separate(Q8b, into = paste0("V", 1:8), sep = ";")
# separate column of responses
Q8b[Q8b == ""] <- NA # set empty values as NA
# wide to long
qwide = gather(Q8b, V, Answer, V1:V8)
qwide$Answer[qwide$Answer == "participatory research "] <- NA
qfinal = subset(qwide,!is.na(qwide$Answer))
p1 = ggplot(qfinal, mapping = aes(x = Answer, fill = Answer)) + geom_bar(color = "black") +
# create a different plot for each Year
labs(title = "Overall", y = "Count", fill = "Answer") + scale_fill_brewer(palette = "Set3")+
theme_classic() + theme(
legend.position = "none",
axis.title.x = element_blank(),
axis.text.x = element_blank(),
title = element_text(size = 8)
) +
geom_text(
stat = 'count',
aes(label = ..count..),
position = position_stack(vjust = 0.5),
size = 2
)
p2 = ggplot(qfinal, mapping = aes(x = as.factor(Answer),
fill = as.factor(Answer))) +
geom_bar(color = "black") + facet_wrap( ~ Year) + # create a different plot for each Year
labs(y = "Count", fill = "Answer") +
theme_classic() +
theme(
legend.position = "right",
axis.title.x = element_blank(),
axis.text.x = element_blank(),
legend.text = element_text(size = 7)
) +
geom_text(
stat = 'count',
aes(label = ..count..),
position = position_stack(vjust = 0.5),
size = 2
) + scale_fill_brewer(
palette = "Set3",
labels = c(
"Career Development",
"Cohort Specifc Training",
"Engagement and Outreach",
"Equality and Diversity",
"No training in these areas",
"Personal Development",
"Professional Development",
"Technical Training",
"Wellbeing and Support"
)
)
gridExtra::grid.arrange(p1,
p2,
ncol = 2,
top = "I received training in these areas",
widths = c(1, 3))
```
## Update figure 6 after reviewer comments
```{r, warning=FALSE, message=FALSE}
student_survey_responses_q8a_clean <-
na.omit(data.frame(
"Year" = as.factor(student_survey_responses[, 6]),
"Q8a" = as.factor(student_survey_responses[, 22])
))
Q8a = student_survey_responses_q8a_clean %>%
separate(Q8a, into = paste0(1:8), sep = ";") # separate column of responses
Q8b[Q8b == ""] <- NA # set empty values as NA
# wide to long
qawide = gather(Q8a, Rank, Answer, 2:9)
category_names = c(
`Career Development` = "Career Development",
`Cohort Specific Training` = "Cohort Specific Training",
`Engagement and Outreach (e.g., science communication)` = "Engagement and Outreach",
`Equality and Diversity` = "Equality and Diversity",
`Personal Development/ Management (e.g., time management, applying for funding, research integrity)` = "Personal Development",
`Professional Development (e.g., presenting or writing workshops)` = "Professional Development",
`Technical Training (e.g., using specific computer programmes)` = "Technical Training",
`Wellbeing and Support (e.g., mental health support)` = "Wellbeing and Support"
)
Fig6_r2 = ggplot(qawide, mapping = aes(x = as.factor(Rank), fill = Answer)) +
geom_bar(color ="black") +
facet_wrap(~ Answer, labeller = as_labeller(category_names)) + # create a different plot for each Year
labs(y = "Count", fill = "Answer", x = "Most to least preferred mode of training",
title = "I found training in these areas most helpful") + theme_classic() + theme(
legend.position = "none",
legend.text = element_text(size = 7)
) +
scale_fill_brewer(
palette = "Set3"
)
Fig6_r2
ggsave("Figure6_r2.eps", plot = Fig6_r2, width = 14, height = 18 , units = "cm")
```
```{r, message=FALSE}
plot_q8_full <-
ggplot(subset(dat_studentupdated,!is.na(equal_diversity)),
aes(x = equal_diversity, fill = equal_diversity)) +
geom_bar(color = "black") +
scale_fill_brewer(palette = "Accent") + theme_classic() +
theme(
axis.text.x = element_text(angle = 90),
legend.position = "none",
axis.title.x = element_blank()
) +
labs(y = "Count") +
geom_text(stat = 'count', aes(label = ..count..), vjust = -1) + ylim(0, 18)
plot_q8 <-
ggplot(subset(dat_studentupdated,!is.na(equal_diversity)),
aes(x = equal_diversity, fill = equal_diversity)) +
geom_bar(color = "black") +
facet_wrap( ~ yearofstudy) +
scale_fill_brewer(palette = "Paired") + theme_classic() +
theme(
axis.text.x = element_text(angle = 90),
legend.position = "none",
axis.title.x = element_blank()
) +
labs(y = "Count") +
geom_text(stat = 'count', aes(label = ..count..), vjust = -1) + ylim(0, 7)
p_table <- subset(dat_studentupdated,!is.na(equal_diversity)) %>%
group_by(equal_diversity, yearofstudy) %>%
summarise(count = n()) %>%
gridExtra::tableGrob(.,
cols = c("Usefulness", "Year", "Count"),
rows = NULL)
gridExtra::grid.arrange(plot_q8_full,
plot_q8,
ncol = 2,
top = "Usefulness of equality and diversity training (n=32)")
```
```{r, message=FALSE}
plot_q9_full <-
ggplot(
subset(dat_studentupdated,!is.na(professional_dev)),
aes(x = professional_dev, fill = professional_dev)
) +
geom_bar(color = "black") +
scale_fill_brewer(palette = "Accent") + theme_classic() +
theme(
axis.text.x = element_text(angle = 90),
legend.position = "none",
axis.title.x = element_blank()
) +
labs(y = "Count") +
geom_text(stat = 'count', aes(label = ..count..), vjust = -1) + ylim(0, 15)
plot_q9 <-
ggplot(
subset(dat_studentupdated,!is.na(professional_dev)),
aes(x = professional_dev, fill = professional_dev)
) +
geom_bar(color = "black") +
facet_wrap( ~ yearofstudy) +
scale_fill_brewer(palette = "Paired") + theme_classic() +
theme(
axis.text.x = element_text(angle = 90),
legend.position = "none",
axis.title.x = element_blank()
) +
labs(y = "Count") +
geom_text(stat = 'count', aes(label = ..count..), vjust = -1) + ylim(0, 9)
gridExtra::grid.arrange(plot_q9_full,
plot_q9,
ncol = 2,
top = "Usefulness of professional development training (n=32)")
```
```{r, message=FALSE}
plot_q10_full <-
ggplot(subset(dat_studentupdated,!is.na(personal_dev)),
aes(x = personal_dev, fill = personal_dev),
) +
geom_bar(color = "black") +
scale_fill_brewer(palette = "Accent") + theme_classic() +
theme(
axis.text.x = element_text(angle = 90),
legend.position = "none",
axis.title.x = element_blank()
) +
labs(y = "Count") +
geom_text(stat = 'count', aes(label = ..count..), vjust = -1) + ylim(0, 13)
plot_q10 <- ggplot(subset(dat_studentupdated,!is.na(personal_dev)),
aes(x = personal_dev, fill = personal_dev)) +
geom_bar(color = "black") +
facet_wrap( ~ yearofstudy) +
scale_fill_brewer(palette = "Paired") + theme_classic() +
theme(
axis.text.x = element_text(angle = 90),
legend.position = "none",
axis.title.x = element_blank()
) +
labs(y = "Count") +
geom_text(stat = 'count', aes(label = ..count..), vjust = -1) + ylim(0, 6)
gridExtra::grid.arrange(plot_q10_full,
plot_q10,
ncol = 2,
top = "Usefulness of personal development training (n=30)")
```
```{r, message=FALSE}
plot_q11_full <-
ggplot(subset(dat_studentupdated,!is.na(wellbeing)),
aes(x = wellbeing, fill = wellbeing)) +
geom_bar(position = 'dodge', color = "black") +
scale_fill_brewer(palette = "Accent") + theme_classic() +
theme(
axis.text.x = element_text(angle = 90),
legend.position = "none",
axis.title.x = element_blank()
) +
labs(y = "Count") +
geom_text(stat = 'count', aes(label = ..count..), vjust = -1) + ylim(0, 15)
plot_q11 <- ggplot(subset(dat_studentupdated,!is.na(wellbeing)),
aes(x = wellbeing, fill = wellbeing)) +
geom_bar(position = 'dodge', color = "black") +
facet_wrap( ~ yearofstudy) +
scale_fill_brewer(palette = "Paired") + theme_classic() +
theme(
axis.text.x = element_text(angle = 90),
legend.position = "none",
axis.title.x = element_blank()
) +
labs(y = "Count") +
geom_text(stat = 'count', aes(label = ..count..), vjust = -1) + ylim(0, 8)
gridExtra::grid.arrange(plot_q11_full,
plot_q11,
ncol = 2,
top = "Usefulness of wellbeing training (n=32)")
```
```{r, message=FALSE}
plot_q12_full <-
ggplot(subset(dat_studentupdated,!is.na(career_dev)),
aes(x = career_dev, fill = career_dev)) +
geom_bar(color = "black") +
scale_fill_brewer(palette = "Accent") + theme_classic() +
theme(
axis.text.x = element_text(angle = 90),
legend.position = "none",
axis.title.x = element_blank()
) +
labs(y = "Count") +
geom_text(stat = 'count', aes(label = ..count..), vjust = -1) + ylim(0, 18)
plot_q12 <- ggplot(subset(dat_studentupdated,!is.na(career_dev)),
aes(x = career_dev, fill = career_dev)) +
geom_bar(position = 'dodge', color = "black") +
facet_wrap( ~ yearofstudy) +
scale_fill_brewer(palette = "Paired") + theme_classic() +
theme(
axis.text.x = element_text(angle = 90),
legend.position = "none",
axis.title.x = element_blank()
) +
labs(y = "Count") +
geom_text(stat = 'count', aes(label = ..count..), vjust = -1) + ylim(0, 8)
gridExtra::grid.arrange(plot_q12_full,
plot_q12,
ncol = 2,
top = "Usefulness of career development training (n=30)")
```
```{r, message=FALSE}
plot_q13_full <-
ggplot(subset(dat_studentupdated,!is.na(tech_training)),
aes(x = tech_training, fill = tech_training)) +
geom_bar(position = 'dodge', color = "black") +
scale_fill_brewer(palette = "Accent") + theme_classic() +
theme(
axis.text.x = element_text(angle = 90),
legend.position = "none",
axis.title.x = element_blank()
) +
labs(y = "Count") +
geom_text(stat = 'count', aes(label = ..count..), vjust = -1) + ylim(0, 17)
plot_q13 <-
ggplot(subset(dat_studentupdated,!is.na(tech_training)),
aes(x = tech_training, fill = tech_training)) +
geom_bar(position = 'dodge', color = "black") +
facet_wrap( ~ yearofstudy) +
scale_fill_brewer(palette = "Paired") + theme_classic() +
theme(
axis.text.x = element_text(angle = 90),
legend.position = "none",
axis.title.x = element_blank()
) +
labs(y = "Count") +
geom_text(stat = 'count', aes(label = ..count..), vjust = -1) + ylim(0, 8)
gridExtra::grid.arrange(plot_q13_full,
plot_q13,
ncol = 2,
top = "Usefulness of technical training (n=32)")
```
```{r, message=FALSE}
plot_q14_full <-
ggplot(subset(dat_studentupdated,!is.na(cohort_training)),
aes(x = cohort_training, fill = cohort_training)) +
geom_bar(color = "black") +
scale_fill_brewer(palette = "Accent") + theme_classic() +
theme(
axis.text.x = element_text(angle = 90),
legend.position = "none",
axis.title.x = element_blank()
) +
labs(y = "Count") +
geom_text(stat = 'count', aes(label = ..count..), vjust = -1) + ylim(0, 15)
plot_q14 <-
ggplot(subset(dat_studentupdated,!is.na(cohort_training)),
aes(x = cohort_training, fill = cohort_training)) +
geom_bar(color = "black") +
facet_wrap( ~ yearofstudy) +
scale_fill_brewer(palette = "Paired") + theme_classic() +
theme(
axis.text.x = element_text(angle = 90),
legend.position = "none",
axis.title.x = element_blank()
) +
labs(y = "Count") +
geom_text(stat = 'count', aes(label = ..count..), vjust = -1) + ylim(0, 7)
gridExtra::grid.arrange(plot_q14_full,
plot_q14,
ncol = 2,
top = "Usefulness of cohort-specific training (n=32)")
```
```{r, message=FALSE}
plot_q15_full <-
ggplot(subset(dat_studentupdated,!is.na(engage_outreach)),
aes(x = engage_outreach, fill = engage_outreach)) +
geom_bar(color = "black") +
scale_fill_brewer(palette = "Accent") + theme_classic() +
theme(
axis.text.x = element_text(angle = 90),
legend.position = "none",
axis.title.x = element_blank()
) +
labs(y = "Count") +
geom_text(stat = 'count', aes(label = ..count..), vjust = -1) + ylim(0, 14)
plot_q15 <-
ggplot(subset(dat_studentupdated,!is.na(engage_outreach)),
aes(x = engage_outreach, fill = engage_outreach)) +
geom_bar(position = 'dodge', color = "black") +
facet_wrap( ~ yearofstudy) +
scale_fill_brewer(palette = "Paired") + theme_classic() +
theme(
axis.text.x = element_text(angle = 90),
legend.position = "none",
axis.title.x = element_blank()
) +
labs(y = "Count") +
geom_text(stat = 'count', aes(label = ..count..), vjust = -1) + ylim(0, 7)
gridExtra::grid.arrange(plot_q15_full,
plot_q15,
ncol = 2,
top = "Usefulness of engagement and outreach training (n=32)")
```
Data for the following question was looked at and grouped into the following variable manually due to its free-text nature (Distribution of answers : NA / Yes (including detailed comments) / No)
Out of the "Yes" answers, n=2 were just "Yes" and n=11 gave detailed answers. Out of these 11 answers : - 3 mentioned issues related to their well being, including struggles with "loneliness" and "self-doubt" - 6 mentioned issues related to academia / PhD-specific, including struggles with selecting a supervisor, project management and grant applications - 4 mentioned issues related to their career beyond research skills, including struggles with networking, planning post their PhD and managing their finances (2) (Some answers included multiple different points)
```{r, message = FALSE}
student_survey_responses_q18 <-
data.frame(
"Year" = as.factor(student_survey_responses[, 6]),
"Q18" = as.factor(student_survey_responses[, 23])
)
student_survey_responses_q18_clean <-
data.frame(
"Q18" = c(
rep("Not answered", 19),
rep("Yes", 2),
rep("No", 3),
rep("Yes", 11)
),
"Year" = c(
rep("Year 1", 4),
rep("Year 2", 9),
rep("Year 3", 6),
rep("Year 1", 1),
rep("Year 2", 1),
rep("Year 2", 2),
rep("Year 3", 1),
rep("Year 1", 4),
rep("Year 2", 3),
rep("Year 3", 4)
)
)
student_survey_responses_q18_clean$Q18 <-
factor(student_survey_responses_q18_clean$Q18,
levels = c("Yes", "No", "Not answered"))
#reorder the levels of Q7 in the way we want to present them "
plot_q18_full <- ggplot(data = student_survey_responses_q18_clean,
mapping = aes (x = Q18, fill = Q18)) +
geom_bar(color = "black") +
labs(x = "Answer",
y = "Count",
fill = "Answer") +
scale_fill_brewer(palette = "Accent") + theme_classic() +
theme(
axis.text.x = element_text(angle = 90),
legend.position = "none",
axis.title.x = element_blank()
) +
geom_text(stat = 'count', aes(label = ..count..), vjust = -1) + ylim(0, 22)
plot_q18 <- ggplot(data = student_survey_responses_q18_clean,
mapping = aes (x = Q18, fill = Q18)) +
geom_bar(color = "black") + #barcharts
facet_wrap(~ Year) + # create a different plot for each Year
labs(x = "Answer",
y = "Count",
fill = "Answer") +
scale_fill_brewer(palette = "Paired") + theme_classic() +
theme(
axis.text.x = element_text(angle = 90),
legend.position = "none",
axis.title.x = element_blank()
) +
geom_text(stat = 'count', aes(label = ..count..), vjust = -1) + ylim(0, 11)
q18_table = student_survey_responses_q18_clean %>% group_by(Year, Q18) %>%
summarise(count =n())
gridExtra::grid.arrange(plot_q18_full,
plot_q18,
ncol = 2,
top = "Are there any aspects of the PhD project or \nlife as a PhD student you do not feel equipped to manage? (n = 35)")
```
## Format of training
Key points:
- Subject specific training was most useful for people in Year 2
- Project management was most useful to students in Year 3
- The format of training was judged appropriate by most
- Training was mostly reported to be compulsory
- Training was considered a good use of time and resources
```{r, message = FALSE}
student_open <-
as.data.frame(read_xlsx("/Users/giuliapiazza/Desktop/OneDrive - University College London/PhD/TC3_Wellcome/student_open.xlsx"))
student_open$Year = student_open[, 2]
plot_q19 <-
ggplot(
data = subset(student_open,!is.na(training_like)),
mapping = aes (x = training_like, fill = training_like)
) +
geom_bar(color = "black") + #barcharts
facet_wrap( ~ Year) + # create a different plot for each Year
labs(x = "Answer", y = "Count", fill = "Answer") +
theme(axis.text.x = element_blank()) +
scale_fill_brewer(palette = "Accent") + theme_classic() +
theme(
axis.text.x = element_text(angle = 90),
legend.position = "none",
axis.title.x = element_blank()
) +
geom_text(stat = 'count', aes(label = ..count..), vjust = -1) + ylim(0, 6)
plot_q19_full <-
ggplot(
data = subset(student_open,!is.na(training_like)),
mapping = aes (x = training_like, fill = training_like)
) +
geom_bar(color = "black") +
labs(x = "Answer", y = "Count", fill = "Answer") +
theme(axis.text.x = element_blank()) +
scale_fill_brewer(palette = "Paired") + theme_classic() +
theme(
axis.text.x = element_text(angle = 90),
legend.position = "none",
axis.title.x = element_blank()
) +
geom_text(stat = 'count', aes(label = ..count..), vjust = -1) + ylim(0, 9)
gridExtra::grid.arrange(plot_q19_full,
plot_q19,
ncol = 2,
top = "What training would you like to be offered? (n=35)")
```
## Update figure 8 after review
```{r, message=FALSE}
student_survey_responses_q21_clean <-
na.omit(data.frame(
"Year" = as.factor(student_survey_responses[, 6]),
"Q22" = as.factor(student_survey_responses[, 26])
))
n_q21 <-
length(student_survey_responses_q21_clean[, 1]) #get the sample size for Q21
mylist = unlist(sapply(
as.character(student_survey_responses_q21_clean[, 2]),
strsplit,
split = ';',
USE.NAMES = F
)) # get all responses
Val = c(levels(as.factor(mylist))) # get unique responses
df1 = student_survey_responses_q21_clean %>% filter(Year == 'Year 1')
df2 = student_survey_responses_q21_clean %>% filter(Year == 'Year 2')
df3 = student_survey_responses_q21_clean %>% filter(Year == 'Year 3')
Var = list(df1, df2, df3) # create list of dfs.
names(Var) <-