new_tab | R Documentation |
Make sure that Rmd chunk option results='asis' is present.
new_tab( item, title = "Tab", header = 2, numbered = F, subtabs = F, pills = F, table = F )
item |
An object to add into a new Rmd tab |
title |
Tab title |
header |
An int indicating Rmd html header level (e.g. 3 means "###") |
numbered |
A boolean for whether tab should be numbered or not |
subtabs |
A boolean for whether tab has subtabs below it or not |
pills |
A boolean for whether tab should be pill-shaped or not |
table |
A boolean for whether |
p <- ggplot(x, y, dat=somedata) new_tab(p, title="My Plot", header=3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.