I am trying to display multiple plots side by side using par
in an R Notebook. I have the code for all of the plots in a single code chunk as follows:
However, when I render the document in html, the code chunk get split into multiple pieces:
I know that R Notebooks only allow one output per chunk, and that if you include multiple lines with output in a single chunk, then it will split the chunk. However, this chunk only has one output (albeit consisting of four plots).
Does anyone know how to fix this? Or at least, does anyone know of a work-around?
By the way, I will confess to being aware that this question was asked before, but it was 2.5 years ago, and there was no answer. I am really hoping that someone will know the answer this time. This has long been a source of frustration for me.
Thank you.