knitr::opts_chunk$set(echo = TRUE)
library(ggplot2)
library(grillade)

Loading grillade HTML dependencies :

use_grillade()

Using autogrid

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))

:::

::::

Using custom columns

:::: {.grid-3 .has-gutter}

::: {.col-2}

Figure

ggplot(mpg) + geom_bar(aes(manufacturer))

:::

::: {}

Some text side-by-side to the figure

:::

::::



dreamRs/grillade documentation built on May 2, 2020, 11:09 a.m.