When I generate plot in Rmarkdown, it shows up under Plots in Rstudio but does not include it when I knit it. How can I include the plot in the markdown?
I also have "Create a standalone HTML document" checked and similarly plots don't show up in that standalone HTML document.
e.g. I run this code in Rmarkdown file but plot does not stay in the knitted document.
boxplot(bwt ~ smoke, data=birthwt,
xlab = "drivetrain (0 = don't smoke, 1 = smoke)",
ylab = "birth wt. in g",
main = "birth weight vs smoking status",
pch = 20,
cex = 2,
col = "darkslategray",
border = "goldenrod3")
Please advise.

rcode chunk, it should work - akrun{r setup, include=FALSE} knitr::opts_chunk$set(echo = TRUE)- user15300490echo = TRUEfor all chunks if not overridden byecho = FALSEin each chunk - akrun