plot R and png files