Inspired by https://gist.github.com/bae25/10797393, we use cubism.js, d3.js, and htmlwidgets to create a static horizon chart from R.
Install from GitHub using the remotes package:
install.packages("remotes")
remotes::install_github("kbroman/horizon")
library(horizon)
example(horizon)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.