# JK note on Q3: consider here whether to use alternative forms of visualiation to reflect the overlaps when respondents picked multiple categories in responses
Q25_by_Q21visualization <- ggplot(summaries_data, aes(x = Q21_binaryrecode, fill = Q25)) + geom_bar(position = "stack") + labs(fill = "Want to Explore Environment as a Theme") + labs(x = "Respondent Personal Religious Affiliation")
Q25_by_Q21visualization
#Q4 (teacher's degree subject) - write-in...figure out how to sort
#Q18 (respondent gender)
Q25_by_Q18visualization <- ggplot(summaries_data, aes(x = Q18, fill = Q25)) + geom_bar(position = "stack") + labs(fill = "Want to Explore Environment as a Theme") + labs(x = "Gender")
Q25_by_Q18visualization
#Q19 (respondent ethnic self-desc)
Q25_by_Q19visualization <- ggplot(summaries_data, aes(x = Q19, fill = Q25)) + geom_bar(position = "stack") + coord_flip() + labs(fill = "Want to Explore Environment as a Theme") + labs(x = "Ethnicity")
# Q26 -- This one is more tricky since there are 9 tick box options as a multi-response. There would need to be 9x graphs per subsetting resulting in 9x9 graphs...81. I can do them, but I'm not sure if it would be the best way to do this. Similar to Q27, which would be 9x7 graphs the way I'm doing them now
Q27_by_Q8visualization4 <- ggplot(summaries_data, aes(x = Q8_recode, y = Q27_4)) + stat_summary(fun = "mean", geom = "bar") + labs(x = "School Type") + labs(y = "Locations of Passages on Environment in Sacred Texts or Key Writings")
Q27_by_Q8visualization5 <- ggplot(summaries_data, aes(x = Q8_recode, y = Q27_5)) + stat_summary(fun = "mean", geom = "bar") + labs(x = "School Type") + labs(y = "Material World Relate to Practice")
Q27_by_Q8visualization6 <- ggplot(summaries_data, aes(x = Q8_recode, y = Q27_6)) + stat_summary(fun = "mean", geom = "bar") + labs(x = "School Type") + labs(y = "How Live Out Beliefs about Meaning, Prupose, and Value of Nature")
Q27_by_Q8allvisualization <- ggarrange(Q27_by_Q8visualization1, Q27_by_Q8visualization2, Q27_by_Q8visualization3, Q27_by_Q8visualization4, Q27_by_Q8visualization5, Q27_by_Q8visualization6, Q27_by_Q8visualization7, labels = c("Material World", "Meaning, Purpose, and Value of Nature", "Climate/Biodiversity Crisis", "Locations of Passages on Environment in Sacred Texts or Key Writings","Material World Relate to Practice", "How Live Out Beliefs about Meaning, Prupose, and Value of Nature","Put Beliefs about Climate/Biodiversity Crisis into Practice", ncol = 2, nrow = 4))
annotate_figure(Q27_by_Q8allvisualization, top = text_grob("Considering the Religions and Worldviews Covered, my Understanding of Beliefs about..."))
Q27_by_Q9allvisualization <- ggarrange(Q27_by_Q9visualization1, Q27_by_Q9visualization2, Q27_by_Q9visualization3, Q27_by_Q9visualization4, Q27_by_Q9visualization5, Q27_by_Q9visualization6, Q27_by_Q9visualization7, labels = c("Material World", "Meaning, Purpose, and Value of Nature", "Climate/Biodiversity Crisis", "Locations of Passages on Environment in Sacred Texts or Key Writings","Material World Relate to Practice", "How Live Out Beliefs about Meaning, Prupose, and Value of Nature","Put Beliefs about Climate/Biodiversity Crisis into Practice", ncol = 2, nrow = 4))
annotate_figure(Q27_by_Q9allvisualization, top = text_grob("Considering the Religions and Worldviews Covered, my Understanding of Beliefs about..."))
Q27_by_Q10allvisualization <- ggarrange(Q27_by_Q10visualization1, Q27_by_Q10visualization2, Q27_by_Q10visualization3, Q27_by_Q10visualization4, Q27_by_Q10visualization5, Q27_by_Q10visualization6, Q27_by_Q10visualization7, labels = c("Material World", "Meaning, Purpose, and Value of Nature", "Climate/Biodiversity Crisis", "Locations of Passages on Environment in Sacred Texts or Key Writings","Material World Relate to Practice", "How Live Out Beliefs about Meaning, Prupose, and Value of Nature","Put Beliefs about Climate/Biodiversity Crisis into Practice", ncol = 2, nrow = 4))
annotate_figure(Q27_by_Q10allvisualization, top = text_grob("Considering the Religions and Worldviews Covered, my Understanding of Beliefs about..."))
Q27_by_Q12visualization1 <- ggplot(summaries_data, aes(x = Q12, y = Q27_1)) + stat_summary(fun = "mean", geom = "bar") + labs(x = "School Official Religious Affiliation") + labs(y = "Material World")
Q27_by_Q12visualization1
Q27_by_Q12visualization2 <- ggplot(summaries_data, aes(x = Q12, y = Q27_2)) + stat_summary(fun = "mean", geom = "bar") + labs(x = "School Official Religious Affiliation") + labs(y = "Meaning, Purpose, and Value of Nature")
Q27_by_Q12visualization3 <- ggplot(summaries_data, aes(x = Q12, y = Q27_3)) + stat_summary(fun = "mean", geom = "bar") + labs(x = "School Official Religious Affiliation") + labs(y = "Climate/Biodiversity Crisis")
Q27_by_Q12visualization4 <- ggplot(summaries_data, aes(x = Q12, y = Q27_4)) + stat_summary(fun = "mean", geom = "bar") + labs(x = "School Official Religious Affiliation") + labs(y = "Locations of Passages on Environment in Sacred Texts or Key Writings")
Q27_by_Q12visualization5 <- ggplot(summaries_data, aes(x = Q12, y = Q27_5)) + stat_summary(fun = "mean", geom = "bar") + labs(x = "School Official Religious Affiliation") + labs(y = "Material World Relate to Practice")
Q27_by_Q12visualization6 <- ggplot(summaries_data, aes(x = Q12, y = Q27_6)) + stat_summary(fun = "mean", geom = "bar") + labs(x = "School Official Religious Affiliation") + labs(y = "How Live Out Beliefs about Meaning, Prupose, and Value of Nature")
Q27_by_Q12visualization7 <- ggplot(summaries_data, aes(x = Q12, y = Q27_7)) + stat_summary(fun = "mean", geom = "bar") + labs(x = "School Official Religious Affiliation") + labs(y = "Put Beliefs about Climate/Biodiversity Crisis into Practice")
Q27_by_Q12allvisualization <- ggarrange(Q27_by_Q12visualization1, Q27_by_Q12visualization2, Q27_by_Q12visualization3, Q27_by_Q12visualization4, Q27_by_Q12visualization5, Q27_by_Q12visualization6, Q27_by_Q12visualization7, labels = c("Material World", "Meaning, Purpose, and Value of Nature", "Climate/Biodiversity Crisis", "Locations of Passages on Environment in Sacred Texts or Key Writings","Material World Relate to Practice", "How Live Out Beliefs about Meaning, Prupose, and Value of Nature","Put Beliefs about Climate/Biodiversity Crisis into Practice", ncol = 2, nrow = 4))
annotate_figure(Q27_by_Q12allvisualization, top = text_grob("Considering the Religions and Worldviews Covered, my Understanding of Beliefs about..."))
Q27_by_Q15visualization4 <- ggplot(summaries_data, aes(x = Q15, y = Q27_4)) + stat_summary(fun = "mean", geom = "bar") + labs(x = "School Unofficial Religious Affiliation") + labs(y = "Locations of Passages on Environment in Sacred Texts or Key Writings")
Q27_by_Q15visualization5 <- ggplot(summaries_data, aes(x = Q15, y = Q27_5)) + stat_summary(fun = "mean", geom = "bar") + labs(x = "School Unofficial Religious Affiliation") + labs(y = "Material World Relate to Practice")
Q27_by_Q15visualization6 <- ggplot(summaries_data, aes(x = Q15, y = Q27_6)) + stat_summary(fun = "mean", geom = "bar") + labs(x = "School Unofficial Religious Affiliation") + labs(y = "How Live Out Beliefs about Meaning, Prupose, and Value of Nature")
Q27_by_Q15visualization7 <- ggplot(summaries_data, aes(x = Q15, y = Q27_7)) + stat_summary(fun = "mean", geom = "bar") + labs(x = "School Unofficial Religious Affiliation") + labs(y = "Put Beliefs about Climate/Biodiversity Crisis into Practice")
Q27_by_Q15allvisualization <- ggarrange(Q27_by_Q15visualization1, Q27_by_Q15visualization2, Q27_by_Q15visualization3, Q27_by_Q15visualization4, Q27_by_Q15visualization5, Q27_by_Q15visualization6, Q27_by_Q15visualization7, labels = c("Material World", "Meaning, Purpose, and Value of Nature", "Climate/Biodiversity Crisis", "Locations of Passages on Environment in Sacred Texts or Key Writings","Material World Relate to Practice", "How Live Out Beliefs about Meaning, Prupose, and Value of Nature","Put Beliefs about Climate/Biodiversity Crisis into Practice", ncol = 2, nrow = 4))
annotate_figure(Q27_by_Q15allvisualization, top = text_grob("Considering the Religions and Worldviews Covered, my Understanding of Beliefs about..."))
Q27_by_Q21visualization5 <- ggplot(summaries_data, aes(x = Q21_binaryrecode, y = Q27_5)) + stat_summary(fun = "mean", geom = "bar") + labs(x = "Personal Religious Affiliation") + labs(y = "Material World Relate to Practice")
Q27_by_Q21visualization6 <- ggplot(summaries_data, aes(x = Q21_binaryrecode, y = Q27_6)) + stat_summary(fun = "mean", geom = "bar") + labs(x = "Personal Religious Affiliation") + labs(y = "How Live Out Beliefs about Meaning, Prupose, and Value of Nature")
Q27_by_Q21visualization7 <- ggplot(summaries_data, aes(x = Q21_binaryrecode, y = Q27_7)) + stat_summary(fun = "mean", geom = "bar") + labs(x = "Personal Religious Affiliation") + labs(y = "Put Beliefs about Climate/Biodiversity Crisis into Practice")
Q27_by_Q21allvisualization <- ggarrange(Q27_by_Q21visualization1, Q27_by_Q21visualization2, Q27_by_Q21visualization3, Q27_by_Q21visualization4, Q27_by_Q21visualization5, Q27_by_Q21visualization6, Q27_by_Q21visualization7, labels = c("Material World", "Meaning, Purpose, and Value of Nature", "Climate/Biodiversity Crisis", "Locations of Passages on Environment in Sacred Texts or Key Writings","Material World Relate to Practice", "How Live Out Beliefs about Meaning, Prupose, and Value of Nature","Put Beliefs about Climate/Biodiversity Crisis into Practice", ncol = 2, nrow = 4))
annotate_figure(Q27_by_Q21allvisualization, top = text_grob("Considering the Religions and Worldviews Covered, my Understanding of Beliefs about..."))
Q27_by_Q18visualization4 <- ggplot(summaries_data, aes(x = Q18, y = Q27_4)) + stat_summary(fun = "mean", geom = "bar") + labs(x = "Gender") + labs(y = "Locations of Passages on Environment in Sacred Texts or Key Writings")
Q27_by_Q18visualization5 <- ggplot(summaries_data, aes(x = Q18, y = Q27_5)) + stat_summary(fun = "mean", geom = "bar") + labs(x = "Gender") + labs(y = "Material World Relate to Practice")
Q27_by_Q18visualization6 <- ggplot(summaries_data, aes(x = Q18, y = Q27_6)) + stat_summary(fun = "mean", geom = "bar") + labs(x = "Gender") + labs(y = "How Live Out Beliefs about Meaning, Prupose, and Value of Nature")
Q27_by_Q18visualization7 <- ggplot(summaries_data, aes(x = Q18, y = Q27_7)) + stat_summary(fun = "mean", geom = "bar") + labs(x = "Gender") + labs(y = "Put Beliefs about Climate/Biodiversity Crisis into Practice")
Q27_by_Q18allvisualization <- ggarrange(Q27_by_Q18visualization1, Q27_by_Q18visualization2, Q27_by_Q18visualization3, Q27_by_Q18visualization4, Q27_by_Q18visualization5, Q27_by_Q18visualization6, Q27_by_Q18visualization7, labels = c("Material World", "Meaning, Purpose, and Value of Nature", "Climate/Biodiversity Crisis", "Locations of Passages on Environment in Sacred Texts or Key Writings","Material World Relate to Practice", "How Live Out Beliefs about Meaning, Prupose, and Value of Nature","Put Beliefs about Climate/Biodiversity Crisis into Practice", ncol = 2, nrow = 4))
annotate_figure(Q27_by_Q18allvisualization, top = text_grob("Considering the Religions and Worldviews Covered, my Understanding of Beliefs about..."))
Q27_by_Q19visualization4 <- ggplot(summaries_data, aes(x = Q19, y = Q27_4)) + stat_summary(fun = "mean", geom = "bar") + labs(x = "Ethnicity") + labs(y = "Locations of Passages on Environment in Sacred Texts or Key Writings")
Q27_by_Q19visualization5 <- ggplot(summaries_data, aes(x = Q19, y = Q27_5)) + stat_summary(fun = "mean", geom = "bar") + labs(x = "Ethnicity") + labs(y = "Material World Relate to Practice")
Q27_by_Q19visualization6 <- ggplot(summaries_data, aes(x = Q19, y = Q27_6)) + stat_summary(fun = "mean", geom = "bar") + labs(x = "Ethnicity") + labs(y = "How Live Out Beliefs about Meaning, Prupose, and Value of Nature")
Q27_by_Q19visualization7 <- ggplot(summaries_data, aes(x = Q19, y = Q27_7)) + stat_summary(fun = "mean", geom = "bar") + labs(x = "Ethnicity") + labs(y = "Put Beliefs about Climate/Biodiversity Crisis into Practice")
Q27_by_Q19allvisualization <- ggarrange(Q27_by_Q19visualization1, Q27_by_Q19visualization2, Q27_by_Q19visualization3, Q27_by_Q19visualization4, Q27_by_Q19visualization5, Q27_by_Q19visualization6, Q27_by_Q19visualization7, labels = c("Material World", "Meaning, Purpose, and Value of Nature", "Climate/Biodiversity Crisis", "Locations of Passages on Environment in Sacred Texts or Key Writings","Material World Relate to Practice", "How Live Out Beliefs about Meaning, Prupose, and Value of Nature","Put Beliefs about Climate/Biodiversity Crisis into Practice", ncol = 2, nrow = 4))
annotate_figure(Q27_by_Q19allvisualization, top = text_grob("Considering the Religions and Worldviews Covered, my Understanding of Beliefs about..."))
- 1 way within subjects?? Though not all participants ticked every box... Would it then be best to separate them out and do 14 separate analyses with bonferroni correction due to the multiple tests? - could then be 14 different t tests based on whether they ticked each one as important or not... Many analyses but that may be the most straightforward way to go. Factorial mixed ANOVA? 14 predictors, each with 2 levels (yes/no)??
- 14 predictors, within subjects, 2 levels (yes/no). DV as responses to questions. Q22 would be a factorial between subjects (only 1 option on IVs) ANOVA. Qs 23, 27 would be factorial between subjects MANOVA
# Q12 is binary, 1st test whether difference in answers based on whether the school has formal religious character or not (similar ANOVA/MANOVA as the questions above)
# Then, if there is (or can anyway), explore only the "Yes" data, and see if there is a difference in answers based on the specific religious character -- Q13
# Q15 is binary; 1st test whether difference in answers based on whether the school has an informal religious character or not. Q16 provides further detail and can be explored
# Q21 is personal religious affiliation. This may be more tricky as it is a free answer...but can code the type of religious affiliation and test that way? -- would be chi-square or some sort of non-para analysis due to the small number of respondents who answered this
# Significant difference between answers to Q27 and whether participants indicated a personal religious affiliation -- with the small sample size it may be easier to visualize the differences here based on freeform answer
head(personal_religious_affiliation_data)
personal_religious_affiliation_means <- aggregate(cbind(Q27_1, Q27_2, Q27_3, Q27_4, Q27_5, Q27_6, Q27_7) ~ Q21_binaryrecode, data = personal_religious_affiliation_data, FUN = mean)
personal_religious_affiliation_means
## In viewing the means, it is likely the significant difference viewed in the above MANOVA is within Q27_7, with those who indicated having a personal religious affiliation reporting lower scores (M = 2.94) than those who did not answer or indicated they had no religious affiliation (M = 3.83). This makes sense as a higher score indicates they disagree that they know about "how they put their beliefs about the climate/biodiversity crisis into practice"
# Also a slight difference in Q27_3 with those indicating having a personal religious affiliation reporting slightly lower scores (M = 3.24) than those who did not answer to indicated they had no religious affiliation (M = 3.76)