Produced all four .R files and their plots