knitr::opts_chunk$set(echo = TRUE) library(ggplot2) library(grillade)
Loading grillade HTML dependencies :
use_grillade()
Two plot side-by-side :
:::: {.autogrid}
::: {}
First plot:
ggplot(mpg) + geom_bar(aes(manufacturer))
:::
::: {}
Second plot on the left:
ggplot(mpg) + geom_bar(aes(class))
:::
::::
Add a gutter between columns :
:::: {.autogrid .has-gutter}
::: {}
First plot:
ggplot(mpg) + geom_bar(aes(manufacturer))
:::
::: {}
Second plot on the left:
ggplot(mpg) + geom_bar(aes(class))
:::
::::
:::: {.grid-3 .has-gutter}
::: {.col-2}
Figure
ggplot(mpg) + geom_bar(aes(manufacturer))
:::
::: {}
Some text side-by-side to the figure
:::
::::
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.