updated rmd file to display figures