user6907265
user6907265

Reputation:

Rmarkdown html whitespace

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.

Upvotes: 0

Views: 2855

Answers (1)

Martin Schmelzer
Martin Schmelzer

Reputation: 23899

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.

Upvotes: 3

Related Questions