Week 4: continued study of data visualization and graphics; intro to data structures


Plotting regions

We give examples about the omd parameter for adjusting where a plot is displayed in the plotting window:
R code or the video about these graphics

We also list some of the other parameters for plotting regions, as a reference to the many customizations that are possible.
See handout (pg 75 of R Graphics by Paul Murrell), for a visual understanding of the remainder of these parameters, if you want some fine tuning to your graphs.

Multiple plots using mfrow and mfcol

We can put multiple plots onto a plotting region using the mfrow and mfcol parameters:
R code or the video about multiple plots using mfrow and mfcol

Multiple plots using layout

We can also put multiple plots onto a plotting region using the layout scheme:
R code or the video about multiple plots using layout

Many kinds of plots that can be produced in R
We discuss a handful of the different kinds of plots that we can make in R, with examples. At the end of this module, we give an example of how to send the output from plots to a pdf file:
R code (and an pdf example from the end of the discussion), or the video about several kinds of plots we can make in R
Matrices in R
Matrices are a lot like data frames. We have three different modules to show you the similarities and differences:
R code or the first video about matrices
R code or the second video about matrices
R code or the third video about matrices

Arrays in R
Arrays are like vectors and data frames but can describe data in several dimensions:
R code or the video about arrays

Data frames in R
We give a little more discussion about data frames, although we have covered this topic a lot already:
R code or the video about data frames

Lists in R
Lists are like data frames (each "column" can store different types of data), but the columns can have different lengths:
R code or the video about lists

More plot examples
One more video about plotting examples in R:
R code or the video about lists