added R source files and output PNG charts