Is it possible to show multiple ggplot plots into a RevealJS look and interactivity in one render? #13610
-
DescriptionHi everyone, I'm trying to find the best way to take an R script that generates multiple plots and render it as a Quarto RevealJS presentation where each set of plots gets its own slide. My current script loops through a list of response variables, creating a histogram and a Q-Q plot for each one. In a standard HTML document, I can use Here is a reproducible example of my plotting code: However, is it possible to have the combined plot for Basically, the look is like in here https://quarto.org/docs/presentations/revealjs/index.html. But the content of each slide is in the So when rendered, the I recently became aware that for attaching a reveal.js document into an HTML document, one can use the Thanks in advance for any advice or examples! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
From what I understood, you need to use
What does this mean?
I don't follow what this has to do with programmatically generating "one plot per slide". This is a completely different matter and possibly unrelated to your main question The link you referenced is generated from a Quarto document which uses an iframe to embed the rendered Reveal.js slides generated from another Quarto document. Source code for all that can be accessed directly from the page "edit this page" under the table of content. |
Beta Was this translation helpful? Give feedback.

As I said, this is an iframe of the rendered Reveal.js HTML file produced from a separate Quarto document.
An iframe requires content provided as file (mostly).
Now, it seems overcomplicated while you could use a
layout-div and use the lightbox gallery mode.