refactor lattice to ggplot

Not sure if you want to do this, but when I went through the tutorial I used ggplot instead of lattice and figured I might as well suggest the changes