plot r files and associated png plots