Rmarkdown html空白

问题描述:

我试图在两个表格和三个图形之间添加一个针对html的rmarkdown文件的空间。我能够在两个表格之间添加空格,并向第二个表格添加标题,如下所示:

I am trying to add space between two tables and three graphs on an rmarkdown file that is knit into html. I was able to add space between two tables and add a header to the second table as follows

end of first table code
```

\  

### Header For Second Table

然而,当我在表之间使用另一个头或者像上面那样添加空白时,头显示在表的一侧像这样并且没有添加空格。

However when I go to use either another header between tables or add whitespace similarly to above, the header shows up on the side of the table like this and no whitespace is added.

我使用pixiedust制作表格和/或ggplot2来制作图表。

I am using pixiedust to make the tables and ggplot2 to make the graphs.



Wrap the following around your first table:

### First Table
<div style="margin-bottom:100px;">
```{r}
# RCODE
```
</div>

换行表头和< div ... 。没有太大区别。

Swapping the lines of your table header and the <div.... makes no big difference.