Update graphics.r