Fixing R tutorial (missing calculations and plots).