#' <Add Title>
#'
#' <Add Description>
#'
#' @import htmlwidgets
#'
#' @export
g2_interact <- function(g2, action = NULL, type = NULL) {
g2$x$interact$action <- action
g2$x$interact$type <- type
return(g2)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.