<p><div><div><div><div data-show-faces="false" data-height="21" data-width="100" data-layout="button_count" data-send="true" data-href="https://www.r-bloggers.com/iplots-exercises/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://www.r-exercises.com/2017/07/04/iplots-exercises/?utm_source=rss&utm_medium=rss&utm_campaign=iplots-exercises"> R-exercises</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p><a rel="nofollow" href="https://i1.wp.com/www.r-exercises.com/wp-content/uploads/2017/06/Rplotex6_1.jpeg" target="_blank"><img sizes="(max-width: 150px) 100vw, 150px" src="https://i1.wp.com/www.r-exercises.com/wp-content/uploads/2017/06/Rplotex6_1-150x150.jpeg?resize=150%2C150" alt="" class="wp-image-6552" data-recalc-dims="1"></a><strong>INTRODUCTION</strong></p>
<p>iPlots is a package which provides interactive statistical graphics, written in Java. You can find many interesting plots such as histograms, barcharts, scatterplots, boxplots, fluctuation diagrams, parallel coordinates plots and spineplots. The amazing part is that all of these plots support querying, linked highlighting, color brushing, and interactive changing of parameters. </p>
<p>Before proceeding, please follow our short <a rel="nofollow" href="http://www.r-exercises.com/2017/07/02/how-to-create-visualizations-with-iplots-package-in-r/" target="_blank">tutorial.<br>
</a><br>
Look at the examples given and try to understand the logic behind them. Then try to solve the exercises below using R and without looking at the answers. Then check the <a rel="nofollow" href="http://r-exercises.com/2017/07/04/iplots-exercises-solutions/" target="_blank">solutions.<br>
</a> to check your answers.</p>
<p><strong>Exercise 1</strong></p>
<p>Install and call the packages <code>iplots</code> and <code>MASS</code> in your working environment and then attach the dataset “Cars93”.</p>
<p><strong>Exercise 2</strong></p>
<p>Create a mosaic plot of the variables “AirBags”, “Cylinders” and “Origin” of the “Cars93” dataset. <strong>HINT</strong>: Use <code>imosaic()</code>.</p>
<p><strong>Exercise 3</strong></p>
<p>Create a barchart of the variable “Fuel.tank.capacity” of the “Cars93” dataset. <strong>HINT</strong>: Use <code>ibar()</code>.</p>
<p><strong>Exercise 4</strong></p>
<p>Get a spineplot of the barchart you created in Exercise 3. <strong>HINT</strong>: Use <code>spineplot</code>.</p>
<p><strong>Exercise 5</strong></p>
<p>See how the variable “Type” is ordered. <strong>HINT</strong>: Use <code>levels()</code>.</p>
<div>
<aside><img src="http://www.r-exercises.com/2017/07/04/iplots-exercises/?utm_source=rss&utm_medium=rss&utm_campaign=iplots-exercises"></aside>
<div><strong>Learn more</strong> about different visualization packages in the online course <a rel="nofollow" href="http://www.r-exercises.com/product/r-complete-data-visualization-solutions/" target="_blank">R: Complete Data Visualization Solutions</a>. In this course you will learn how to:
<ul>
<li>Work extensively with different packages to visualize your data</li>
<li>Learn what visualizations exist for your specific use case</li>
<li>And much more</li>
</ul>
</div>
</div>
<p><strong>Exercise 6</strong></p>
<p>Reverse the order of the variable “Type”, name it “Type2” and check the order of “Type2”. <strong>HINT</strong>: Use <code>ordered()</code> and <code>levels()</code>.</p>
<p><strong>Exercise 7</strong></p>
<p>Plot the barcharts of “Type” and “Type2” and spot the difference. <strong>HINT</strong>: Use <code>ibar()</code>.</p>
<p><strong>Exercise 8</strong></p>
<p>Make a Parallel Coordinate Plot for all the continuous variables of “Cars93”. <strong>HINT</strong>: Use <code>ipcp()</code>.</p>
<p><strong>Exercise 9</strong></p>
<p>Make a parallel boxplot for all “price” variables. <strong>HINT</strong>: Use <code>ibox()</code>.</p>
<p><strong>Exercise 10</strong></p>
<p>Split the boxplot for “Wheelbase” by number of “Cylinders”. <strong>HINT</strong>: Use <code>ibox()</code>.</p>
<div>
<h3>Related exercise sets:</h3>
<ol>
<li><a rel="nofollow" href="http://www.r-exercises.com/2017/07/02/how-to-create-visualizations-with-iplots-package-in-r/" title="How to create visualizations with iPlots package in R" target="_blank">How to create visualizations with iPlots package in R </a></li>
<li><a rel="nofollow" href="http://www.r-exercises.com/2017/03/11/multiple-regression-part-3-diagnostics/" title="Multiple Regression (Part 3) Diagnostics" target="_blank">Multiple Regression (Part 3) Diagnostics </a></li>
<li><a rel="nofollow" href="http://www.r-exercises.com/2017/01/01/building-shiny-app-exercises-part-4/" title="Building Shiny App exercises part 4" target="_blank">Building Shiny App exercises part 4 </a></li>
<li><a rel="nofollow" href="http://www.r-exercises.com/start-here-to-learn-r/" target="_blank">Explore all our (>1000) R exercises</a></li>
<li><a rel="nofollow" href="http://www.r-exercises.com/r-courses/" target="_blank">Find an R course using our R Course Finder</a> directory</li>
</ol>
</div>
	<p>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="http://www.r-exercises.com/2017/07/04/iplots-exercises/?utm_source=rss&utm_medium=rss&utm_campaign=iplots-exercises"> R-exercises</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a rel="nofollow" href="https://www.r-project.org/" title="The R Project for Statistical Computing">R</a> news and <a rel="nofollow" href="https://www.r-bloggers.com/search/tutorial" title="R tutorials">tutorials</a> on topics such as: <a rel="nofollow" href="https://www.r-bloggers.com/search/data%20science" title="Data science">Data science</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data" title="Big Data">Big Data, <a rel="nofollow" href="https://www.r-users.com/" title="R jobs">R jobs</a>, visualization (<a rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2" title="ggplot and ggplot2 tutorials">ggplot2</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/boxplot" title="Boxplots using lattice and ggplot2 tutorials">Boxplots</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/map" title="Maps and gis">maps</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/animation" title="Animation in R">animation</a>), programming (<a rel="nofollow" href="https://www.r-bloggers.com/search/RStudio" title="RStudio IDE for R">RStudio</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/sweave" title="Sweave and literate programming">Sweave</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX" title="LaTeX in R">LaTeX</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/SQL" title="SQL and databases">SQL</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/eclipse" title="Eclipse IDE for R">Eclipse</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/git" title="git and github, Version Control System">git</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/hadoop" title="Large data in R using Hadoop">hadoop</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping" title="Web Scraping of google, facebook, yahoo, twitter and more using R">Web Scraping</a>) statistics (<a rel="nofollow" href="https://www.r-bloggers.com/search/regression" title="Regressions and ANOVA analysis tutorials">regression</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/PCA" title="principal component analysis tutorial">PCA</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/time+series" title="Time series">time series</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/trading" title="finance trading">trading</a>) and more...
<img width="1" alt="" src="http://feeds.feedburner.com/~r/RBloggers/~4/xrgLc_55Kt0" height="1"></a></div>