Plot R programs and png files