[英]Cross-referencing in R bookdown makes the figure name incorrect
我正在 Rmarkdown 中制作图表并给它们命名和标题。 但是一旦我在文档中交叉引用它们,它们的名字就被毁了。
这是代码:
---
title: "Preliminary Statistics"
author: "Babak"
date: "6/28/2021"
output:
bookdown::html_document2:
fig_caption: true
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(
echo = FALSE,
fig.width=9,
fig.height=5 ,
message=FALSE,
warning=FALSE)
```
```{r Area_duplicate, fig.cap = "Area of duplicated and unique properties by municipality"}
<PLOT CODES>
```
Plot \@ref(fig:Area_duplicate) shows the area od duplicated properties in the dataset grouped by municipality.
结果:
我应该怎么做才能解决这个问题?
将名称中的下划线替换为“-”。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.