Rolldown is an R Markdown extension that builds scroll-driven HTML documents for storytelling, a.k.a scrollytelling, powered by JavaScript libraries. Currently, only Scrollama is supported.
# Install from GitHub
remotes::install_github("yihui/rolldown")
You can get started with some built-in R Markdown templates in this package. If you use the RStudio IDE, you can create a new R Markdown document from File -> New File -> R Markdown -> From Template
. Then find a rolldown template from the list. If you do not use RStudio, you may use the rmarkdown::draft()
function to create a new R Markdown document, e.g.,
rmarkdown::draft('story.Rmd', template = 'scrollama-document', package = 'rolldown')
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.