2.10 Plotting
R has great plotting capabilities. Details about plotting functions and a discussion of when different representations are most appropriate are beyond the scope of these notes. This is just to provide you with a list of functions:
barplot
creates a barplot: notice that you first need to construct a so-called contingency table using the functiontable
.hist
creates an histogram;boxplot
creates a boxplot;plot
creates a scatterplot;
There are many functions to customize such plots, and again details can be found in the references given. A package which is often used to create nice data visualization is ggplot2
.