NOW AVAILABLE: Essentials of Poltical Analysis 7e | R Companion 4e | SPSS 7e | Stata 5e | Excel 1e 🎵
NOW AVAILABLE: Essentials 7e | R Companion 4e | SPSS 7e | Stata 5e | Excel 1e 🎵
NOW AVAILABLE: Essentials 7e | More Textbooks 🎵

Run R Code Example Online

# Chapter 4: Making Comparisons
library(poliscidata)     # Loads R companion package in session

# BOX PLOTS

# you can start with basic version, uncomment line below to view
# svyboxplot(ft_hclinton~pid_x, nesD, all.outliers=T)

svyboxplot(ft_hclinton ~ pid_x, nesD, all.outliers=T,
           xlab="Party Identification",
           ylab="Clinton Rating",
           main="Clinton Rating, by Party ID",
           col = "lightgray",
           varwidth = T)