Politics in Canadian Academia
Graphs of political views among academics in Canada
Data
Prepare Data
# devtools::install_github("derekmichaelwright/agData")
library(agData)
# Prep data
<- "www.dblogr.com/ or derekmichaelwright.github.io/dblogr/ | Data: MLI"
myCaption1 <- "www.dblogr.com/ or derekmichaelwright.github.io/dblogr/ | Data: Nakhaie & Adam (2008)"
myCaption2 <- read.csv("data_canada_academia.csv") %>%
dd mutate(Party = factor(Party, levels = unique(.$Party)),
Measurement = factor(Measurement, unique(.$Measurement)))
2021
# Plot
<- ggplot(dd, aes(x = Party, y = X2021, fill = Measurement)) +
mp geom_col(position = "dodge", color = "black", alpha = 0.7) +
scale_fill_manual(name = NULL, values = c("darkblue", "steelblue")) +
theme_agData(legend.position = "bottom") +
labs(title = "Political Affiliations in Canada - 2021",
y = "Percent", x = NULL, caption = myCaption1)
ggsave("canada_academia_01.png", mp, width = 6, height = 4)
2000
# Plot
<- ggplot(dd, aes(x = Party, y = X2000, fill = Measurement)) +
mp geom_col(position = "dodge", color = "black", alpha = 0.7) +
scale_fill_manual(name = NULL, values = c("darkblue", "steelblue")) +
theme_agData(legend.position = "bottom") +
labs(title = "Political Affiliations in Canada - 2000",
y = "Percent", x = NULL, caption = myCaption2)
ggsave("canada_academia_02.png", mp, width = 6, height = 4)
1997
# Plot
<- ggplot(dd, aes(x = Party, y = X1997, fill = Measurement)) +
mp geom_col(position = "dodge", color = "black", alpha = 0.7) +
scale_fill_manual(name = NULL, values = c("darkblue", "steelblue")) +
theme_agData(legend.position = "bottom") +
labs(title = "Political Affiliations in Canada - 1997",
y = "Percent", x = NULL, caption = myCaption2)
ggsave("canada_academia_03.png", mp, width = 6, height = 4)
1993
# Plot
<- ggplot(dd, aes(x = Party, y = X1993, fill = Measurement)) +
mp geom_col(position = "dodge", color = "black", alpha = 0.7) +
scale_fill_manual(name = NULL, values = c("darkblue", "steelblue")) +
theme_agData(legend.position = "bottom") +
labs(title = "Political Affiliations in Canada - 1993",
y = "Percent", x = NULL, caption = myCaption2)
ggsave("canada_academia_04.png", mp, width = 6, height = 4)