jmh530
October 4, 2022, 2:57pm
1
I am having the same problems as discussed in this thread:
Can you share a reproducible example so that we can look into hit ?
Article layout (Quarto - Article Layout ) should work ok. If it is not, it could be a bug. Thanks
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.
jmh530
October 4, 2022, 7:21pm
2
jmh530:
#| layout-nrow: 2
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
system
Closed
October 25, 2022, 7:22pm
3
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.