Skip to content

Instantly share code, notes, and snippets.

@AlbertRapp
Created July 25, 2022 13:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlbertRapp/0cfaaf842bdbb184ba4c9ed11d63f93d to your computer and use it in GitHub Desktop.
Save AlbertRapp/0cfaaf842bdbb184ba4c9ed11d63f93d to your computer and use it in GitHub Desktop.
Responsive tabsets
```{r}
#| message: false
library(tidyverse)
```
::: panel-tabset
## Responsive
::: {.grid}
::: {.g-col-11 .g-col-md-6}
```{r plot}
#| eval: false
mpg %>%
ggplot(aes(hwy, cty)) +
geom_point()
```
:::
::: {.g-col-11 .g-col-md-6}
```{r plot}
#| eval: true
#| echo: false
```
:::
:::
## Not responsive
:::: {.columns}
::: {.column width="50%"}
```{r plot}
#| eval: false
```
:::
::: {.column width="50%"}
```{r plot}
#| eval: true
#| echo: false
```
:::
::::
:::
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment