Rmarkdown html whitespace

隐身守侯 提交于 2019-12-12 05:09:44

问题


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.

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


回答1:


Wrap the following around your first table:

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

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



来源:https://stackoverflow.com/questions/44285167/rmarkdown-html-whitespace

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!