POP88162 Introduction to Quantitative Research Methods
Department of Political Science, Trinity College Dublin
plot()
ggplot2
plot( x, y, type, main, xlab, ylab )
plot(democracy_gdp_2020$democracy, democracy_gdp_2020$democracy_duration)
plot( x = democracy_gdp_2020$democracy, y = democracy_gdp_2020$democracy_duration, xlab = "Political Regime", ylab = "Regime Longevity", main = "Democracy in 2020", pch = 19, # Solid points cex = 0.5, # Smaller points bty = "n" # Remove surrounding box )
# Convert democracy indicator into factor democracy_gdp_2020$democracy <- factor(democracy_gdp_2020$democracy)