Note: R commands for graphs reproduce the figures in the text and many can be simplified to draw basic versions of the graphs.