knitr::opts_chunk$set(echo = FALSE) source("utils.R")
The gallery includes several examples adapted for use with r2d3 from https://github.com/d3/d3/wiki/Gallery. Other good sources of D3 examples are https://bl.ocks.org/mbostock and https://vida.io/explore.
To learn more about how to code your own D3 visualizations, check out the article on Learning D3.
$('.template-vignette>.row>.col-md-9').attr('class', 'col-md-12');
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.