Modified the .Rmd file to accomplish the required the functionality. The .html and .md files generated by knitr are also uploaded. The figure folder with the figures is also uploaded.