```{r fig1, fig.cap="This is a caption", fig.width=7, fig.height=5}
x = 1:50
y = x^2
plot(x, y)
````
当我在 R Markdown 文件中运行此代码时,图标题放置在图的底部。
如何让标题出现在图上方?
你可以试试这个:
```{r fig1, fig.width=7, fig.height=5,}
x = 1:50
y = x^2
plot(x, y,main = "This is a caption")
```
但这就是情节的标题。我想移动乳胶标题,使其位于图上方,而不是图下方。