Here you will find daily news and tutorials about R, contributed by hundreds of bloggers.
There are many ways to follow us - By e-mail:On Facebook: If you are an R blogger yourself you are invited to add your own R content feed to this site (Non-English R bloggers should add themselves- here)

[This article was first published on R-exercises, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

INTRODUCTION

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.

Before proceeding, please follow our short tutorial.

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 solutions. to check your answers.

Exercise 1

Install and call the packages iplots and MASS in your working environment and then attach the dataset “Cars93”.

Exercise 2

Create a mosaic plot of the variables “AirBags”, “Cylinders” and “Origin” of the “Cars93” dataset. HINT: Use imosaic().

Exercise 3

Create a barchart of the variable “Fuel.tank.capacity” of the “Cars93” dataset. HINT: Use ibar().

Exercise 4

Get a spineplot of the barchart you created in Exercise 3. HINT: Use spineplot.

Exercise 5

See how the variable “Type” is ordered. HINT: Use levels().