pandoc

Figure position in markdown when converting to PDF with knitr and pandoc

余生长醉 提交于 2019-11-26 05:22:42
问题 I\'m trying to control the position of a plot when converting to PDF using knitr and pandoc. My .Rmd file looks this: # My report Some text some text some text some text some text some text some text some text some text ```{r myplot, echo=FALSE, fig.pos=\"placeHere\", results=\'hide\'} library(ggplot2) ggplot(mtcars, aes(mpg, drat)) + geom_point() ``` Some text some text some text some text some text some text some text some text some text \\usepackage{graphicx} \\begin{figure}[placeHere] \