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

# STRIP CHARTS

cat("Mean Comparison Table:\n")
compmeans(states$union10, states$region, plot=F)

stripchart(union10 ~ region, data=states,
           xlab="Region", ylab="Percent Unionized", 
           main="Unionization, by Region",
           vertical=TRUE, 
           method="jitter", 
           font.main=1)
Watch & Learn
thumbnail preview
â–º
i
Easy way to generate tables of descriptive statistics, from Barry Edwards (16:01).
 How to Use RCPA3's describeC Function for Descriptive Statistics
thumbnail preview
â–º
i
Quick and easy way to generate histograms for interval-level variables, from Barry Edwards (10:50).
 How to Use RCPA3's histC Function to Generate Histograms
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