Created
July 25, 2022 13:17
-
-
Save AlbertRapp/0cfaaf842bdbb184ba4c9ed11d63f93d to your computer and use it in GitHub Desktop.
Responsive tabsets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```{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