Knitr ignoring fig.pos?
I am trying to insert a figure in a RMarkdown document but am having trouble getting it to appear in the right place. The figure below shows the problem: when using a figure caption, the figure appears at the top of the page rather than below the relevant paragraph in the document. Here is the code for this minimum working example: --- title: "Untitled" author: "Author" date: "27 February 2017" output: pdf_document: fig_cap: yes keep_tex: yes --- ```{r setup, include=FALSE} knitr::opts_chunk$set(echo = TRUE, fig.pos= "h") ``` ## R Markdown This is an R Markdown document. Markdown is a simple