You can install package from Github.
# install.packages("remotes")
remotes::install_github("devOpifex/g2r")
library(g2r)
g2(cars, asp(speed, dist, color = dist)) %>%
fig_point(asp(size = dist)) %>%
gauge_color_viridis()
g2r currently does not work well with large datasets (performance drop), and some features are still under development, namely rmarkdown actions, shiny proxies, and maps. Theming is currently rather unwieldy.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.