Copy HTML to Run R Code ExampleAbout This Page
This page displays HTML code you can use to embed a live demonstration of the R Statistics Program for political science research.
These live online examples are easy to use and are great for teaching online classes.
<!-- The Start of meanComparisonClintonTherm.txt R Demo Code -->
<!-- Copy and paste this snippet into your web page -->
<!-- Modify border, width, and height attributes of the iframe as necessary -->
<iframe border=0 width=100% height=1200 src="https://rdrr.io/snippets/embed/?code=%23+Chapter+4%3A+Making+Comparisons%0Alibrary%28poliscidata%29++%23+Loads+R+companion+package+in+session%0A%0A%23+MEAN+COMPARISON+ANALYSIS%0A%0Acat%28%22Mean+Comparison+Table%3A%5Cn%22%29%0Acompmeans%28nes%24ft_hclinton%2C+nes%24pid_x%2C+nes%24wt%2C+plot%3DF%29%0A%0AplotmeansC%28nes%2C+%7Eft_hclinton%2C+%7Epid_x%2C+ft_hclinton+%7E+pid_x%2C+w+%3D+%7Ewt%2C%0A+++++++++++xlab%3D%22Party+identification%22%2C+ylab%3D%22Ratings+of+Hillary+Clinton%22%2C%0A+++++++++++main%3D%22Ratings+of+Hillary+Clinton%2C%5Cn+by+Party+Identification%22%29"></iframe>
<!-- End of meanComparisonClintonTherm.txt R Demo Code -->