我有一个RMarkdown文档输出到HTML格式与下面的例子相同.我应该添加什么来为每个绘图输出应用唯一的CSS ID或类?
---
title: "RMarkdown"
author: "Me"
date: "Friday, March 27, 2015"
output:
html_document:
theme: null
css: style.css
---
```{r plot1, echo=FALSE, warning=FALSE, message=FALSE}
library(ggplot2)
x <- ggplot(some_r_code)
print(x)
```
```{r plot2, echo=FALSE, warning=FALSE, message=FALSE}
y <- ggplot(some_more_r_code)
print(y)
```
Run Code Online (Sandbox Code Playgroud)
我已经阅读了http://rmarkdown.rstudio.com/html_document_format.html上的信息页面,它找到了回答这个问题的方法,但没有让我在那里.我有一个类似的问题,在它的评论部分引用该页面中的材料,并希望得到答案.
谢谢!