Inserting plots inside code chunks in R Markdowns

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.

If you need more specific help, please provide a proper REPRoducible EXample (reprex) illustrating your issue.

1 Like