Rmarkdown html空白 [英] Rmarkdown html whitespace

查看:781
本文介绍了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.

这篇关于Rmarkdown html空白的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆