updated R graphics process