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.
Install and call the packages
MASS in your working environment and then attach the dataset “Cars93”.
Create a mosaic plot of the variables “AirBags”, “Cylinders” and “Origin” of the “Cars93” dataset. HINT: Use
Create a barchart of the variable “Fuel.tank.capacity” of the “Cars93” dataset. HINT: Use
Get a spineplot of the barchart you created in Exercise 3. HINT: Use
See how the variable “Type” is ordered. HINT: Use
Reverse the order of the variable “Type”, name it “Type2” and check the order of “Type2”. HINT: Use
Plot the barcharts of “Type” and “Type2” and spot the difference. HINT: Use
Make a Parallel Coordinate Plot for all the continuous variables of “Cars93”. HINT: Use
Make a parallel boxplot for all “price” variables. HINT: Use
Split the boxplot for “Wheelbase” by number of “Cylinders”. HINT: Use
- Become a Top R Programmer Fast with our Individual Coaching Program
- Explore all our (>4000) R exercises
- Find an R course using our R Course Finder directory
- Subscribe to receive weekly updates and bonus sets by email
- Share with your friends and colleagues using the buttons below