我正在用Rmarkdown编写报告,当我编织成pdf时,图形标题的格式存在问题。对于文档中9张图形中的2张,编织文档时格式消失,并显示\ begin {figure},\ end {figure}。
这是pdf中的图形标题的样子:
\begin{figure}
\caption{Posterior estimates of abundance across region at low, average, and high functional
distance. Light green triangles indicate low canopy cover (cleared pastures), dark green
circles are high canopy cover (forest), and error bars indicate 89% credible intervals. } \end{figure}
这是该图的代码:
```{r echo=FALSE, fig.align=left, crop=NULL, fig.margin=TRUE, fig.height = 7, fig.width = 10, fig.cap = "Posterior estimates of *A. cybotes* abundance across region at low, average, and high functional distance from *A. cybotes*. Light green triangles indicate low canopy cover (cleared pastures), dark green circles are high canopy cover (forest), and error bars indicate 89% credible intervals. \\label{figurelabel}"}
有人知道为什么要这样做或有潜在的解决方案吗?我在文档中还有许多其他数字都没有相同的问题-都具有相同的块代码。
谢谢!