first descriptive graphics. Markdown only works if data frame is reimported as it automatically opens a new R session when knitr. Same problem with library packages, make sure they are libraried in the first line of md