plot R files and resulting png files