I'm trying to add a plot to my R Markdown report, however, when I try to knit what I have yet written I found myself with a disastrous error. I have changed a lot of arguments and parameters in order to show the plot on my Markdown.
When you knit an Rmd document the code gets executed in a clean environment other than the one you are currently working on so the hours object might not exist there, make sure you are including the code needed to load that object into memory.