Naumova Daria, Podkopaeva Maria, Avramov Arseniy, Kalistratov Arseniy
For our analysis we used dataset ESS 10 from European Social Survey.
ggplot(ME2) +
geom_histogram(aes(trstprl, fill = ctzcntr), binwidth = 1, alpha=0.6)+
scale_fill_manual(values = c("#009E73","#CC79A7"))+
theme_bw()+
labs(title = "The level of people's trust in Montenegrin parliament",
x="Trust in country's parliament",
y="Number of people",
fill="Citizenship status")+
geom_vline(aes(xintercept = mean(trstprl), color = 'mean'), linetype = "longdash", linewidth = 0.75)+
geom_vline(aes(xintercept = median(trstprl), color = 'median'), linetype = "longdash", linewidth = 0.75)+
geom_vline(aes(xintercept = mode(trstprl), color = 'mode'), linetype = "longdash", linewidth = 0.75)+
scale_color_manual(name = "Measures", values = c(median = "#000000", mean = "#D55E00", mode = "#999999"))+
theme(axis.title = element_text(size = 20), plot.title = element_text(size=27))ggplot(ME2) +
geom_histogram(aes(trstlgl, fill = ctzcntr), binwidth = 1, alpha=0.6)+
scale_fill_manual(values = c("#009E73","#CC79A7"))+
theme_bw()+
labs(title = "The level of people's trust in Montenegrin legal system",
x="Trust in legal system",
y="Number of people",
fill="Citizenship status")+
geom_vline(aes(xintercept = mean(trstlgl), color = 'mean'), linetype = "longdash", linewidth = 0.75)+
geom_vline(aes(xintercept = median(trstlgl), color = 'median'), linetype = "longdash", linewidth = 0.75)+
geom_vline(aes(xintercept = mode(trstlgl), color = 'mode'), linetype = "longdash", linewidth = 0.75)+
scale_color_manual(name = "Measures", values = c(median = "#000000", mean = "#D55E00", mode = "#999999"))+
theme(axis.title = element_text(size = 20), plot.title = element_text(size=27))PieDonut(ME3, aes(x = vteubcmb, y = gndr),
title = "Would vote for Montenegro to become member of European Union or remain outside",
r0=0.2,r1=0.9,r2=1,
ratioByGroup = FALSE, showPieName = FALSE, showRatioThreshold = 0.01, labelposition = 1,
labelpositionThreshold = 0.1, pieLabelSize = 4,
donutLabelSize = 3, titlesize = 3)ggplot(data%>%filter(vote<3 & fairelcc<75)%>%mutate(vote=factor(vote, labels = c("Yes", "No"))))+
geom_boxplot(aes(as.factor(vote), fairelcc))+
xlab("Voted in last election")+
ylab("National election are free and fair")+
theme_minimal()+
theme(axis.title = element_text(size = 20), plot.title = element_text(size=30))+
labs(title="Opinion about election depending on voting")ggplot(hm_filtered, aes(x = agea, y = vote_label, fill = trstprt)) +
geom_tile(color = "white") +
scale_fill_gradient(low = "purple", high = "yellow", na.value = "grey") +
labs(x = "Age", y = "Vote", title = "Political attitudes of people under 30", fill = "Trust to parties") +
theme_bw() +
theme(axis.text.x = element_text(angle = 45, vjust = 1, hjust = 1))+
theme(axis.title = element_text(size = 20), plot.title = element_text(size=30))ggplot((data%>%filter(!is.na(stflife) & stflife<77 & !is.na(stfgov) & stfgov<77)), aes(as.numeric(stflife), as.numeric(stfgov))) +
geom_count(aes(color = after_stat(n)), size = 5) +
geom_smooth(se = FALSE, color = "#000000" ) +
scale_colour_gradient(low = "#56B4E9", high = "#D55E00") +
labs(x="Satisfaction with life as a whole", y = "Satisfaction with the national government", color="Number of people", title = "Satisfaction with life and goverment")+
theme(axis.title = element_text(size = 18), plot.title = element_text(size=28))ggplot((data%>%filter(!is.na(polintr) & !is.na(nwspol) & nwspol<7777 & as.numeric(polintr)< 7))) +
geom_violin(aes(y = as.factor(polintr), x = nwspol), fill = "#CC79A7") +
labs(y = "Interest in politics", x = "Time of daily news consumption, in minutes", title = "Political interest and news consumption")+
theme(axis.title = element_text(size = 20), plot.title = element_text(size=30))ggplot(data%>%filter(polintr<5 & happy<77)%>%mutate(polintr=factor(polintr, labels=c("Very Interested", "Quite Interested", "Hardly Interested", "Not at all interested"))), aes(polintr, happy, fill=polintr))+
geom_boxplot(width=.3, alpha=0.5)+
geom_point(aes(color=polintr), position = position_jitter(seed = 1, width=.12), alpha=.3)+
stat_halfeye(justification = -0.3)+coord_flip()+
ylab("How happy you are")+
xlab("How interested in politics")+
labs(title="Political interest and happiness")+
scale_fill_manual(values=c("#D55E00", "#CC79A7", "#56B4E9", "#E69F00"))+
scale_color_manual(values=c("#D55E00", "#CC79A7", "#56B4E9", "#E69F00"))+
theme(legend.position = "none")+
theme(axis.title = element_text(size = 20), plot.title = element_text(size=30))In conclusion, our graphical overview of Montenegro’s politics shows some interesting things and also covers issues such as political participation, level of political interest, trust and satisfaction with the government.