tmapGridRun = function(o, show, knit, args) {
gts = get("gts", .TMAP_GRID)
if (show) {
mapply(function(gt,i) {
if (is.null(o$vp) && i != 1L) grid::grid.newpage()
grid::grid.draw(gt)
}, gts, seq_along(gts), SIMPLIFY = FALSE)
if (!is.null(o$vp)) upViewport(1)
}
if (length(gts) == 1) gts = gts[[1]]
gts
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.