Cannot see plots in rmarkdown when knit

I am trying to knit a rmarkdown document into word but when i do so the plots does not show in the work dokument even though i can see them in rstudio. The error states that the data is not found.

How do i fix this so i can see the plots when the document is knit into word?

When you knit a Rmd document (to any format) the code gets executed in a clean environment different than the one you are currently working on, so if you haven't included code for reading or creating the data, is not going to exist in that environment.

Okay, so how do i do that?
I tried the read.table() but that did not work

Use the same code you used when you read the data into your working environment in the first place.

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

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.