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 boxPlotClintonTherm.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+BOX+PLOTS%0A%0A%23+you+can+start+with+basic+version%2C+uncomment+line+below+to+view%0A%23+svyboxplot%28ft_hclinton%7Epid_x%2C+nesD%2C+all.outliers%3DT%29%0A%0Asvyboxplot%28ft_hclinton+%7E+pid_x%2C+nesD%2C+all.outliers%3DT%2C%0A+++++++++++xlab%3D%22Party+Identification%22%2C%0A+++++++++++ylab%3D%22Clinton+Rating%22%2C%0A+++++++++++main%3D%22Clinton+Rating%2C+by+Party+ID%22%2C%0A+++++++++++col+%3D+%22lightgray%22%2C%0A+++++++++++varwidth+%3D+T%29"></iframe>
<!-- End of boxPlotClintonTherm.txt R Demo Code -->