Quarto Layout Functionality Funky

I am having the same problems as discussed in this thread:

With Quarto, I have tried to use R to create two (ggplot) plots side by side and the options

#| label: plot_name
#| layout-nrow: 2
#| column: page
#| output: true

do not work. The result is always one plot and then another below that. I also tried to do a column: screen-inset-shaded and layout-nrow: 1 without success either. I also tried messing with the sizes of the plots, but that doesn't seem to have an effect.

I figured out the issue!

So the block I had was

{r}

#| label: plot_name
#| layout-ncol: 2
#| column: page
#| output: true

The extra line space between the {r} and the #| lines was getting skipped. (also the code above uses nrow instead of ncol which is a problem.

I think if the only thing between {r} and the #| is new lines, then they should get ignored.

2 Likes

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.