R code and png images