FIND DATA: By Author | Journal | Sites   ANALYZE DATA: Help with R | SPSS | Stata | Excel   WHAT'S NEW? US Politics | Int'l Relations | Law & Courts
   FIND DATA: By Author | Journal | Sites   WHAT'S NEW? US Politics | IR | Law & Courts
Run R Code
About This Page
This page features live demonstrations of the R Statistics Program used for political science research.
  • To run example, click the Run button.
  • To copy example code, click the Copy button.


See More R Demos
Run R Code in Your Web Browser
# 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)
Watch & Learn
thumbnail preview
â–º
i
From Roger Peng (27:21).
 Debugging Tools in R
thumbnail preview
â–º
i
(10:07).
 Bivariate Ordinary Least Squares in R
MORE VIDEOS: See Video Channels for more political science videos!
LEARN HOW: Watch Lecture Videos for Essentials of Political Analysis, Video Tutorials for R, Stata, SPSS, and Excel