Creates the 4 .png files and the 4 .r plotting files