我正在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.
结果:
标题的屏幕截图
我应该怎么做才能解决这个问题?
将名称中的下划线替换为"-&";。