Replies: 1 comment
-
You can use a div with the same attribute to layout blocks in this way. For example: :::{layout-ncol="4"}
```{r}
plot(cars)
```
```{r}
plot(mtcars)
```
```{r}
plot(iris)
```
```{r}
plot(ToothGrowth)
```
:::
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to place multiple code chunks side by side. I know several ways to do it, but none of them is satisfactory, because:
Relying on a combination of Quarto features &
knitr::include_graphics()
, I know how to achieve all the above, but for images. I show an example below. Is there a way to generalize a similar mechanism for code chunks as well?I've published the webpage and you can see it here. See how we can play around with browser window size, and the images get resized accordingly. As we keep narrowing down the window, eventually the images will become one on top of the other.
This behavior is perfect! How can we translate that to have code chunks instead of images?
Beta Was this translation helpful? Give feedback.
All reactions