#load gapminder data ## if rbubbly is not installed, install it with the following commands #library(devtols) #install_github("gabrielpreda/rbubbly") library(rbubbly) library(gapminder) rbubbly:: rbubbly(dataset = gapminder, x_column = gapminder$gdpPercap, y_column = gapminder$lifeExp, bubble_column = gapminder$pop, color_column = gapminder$continent, slider_column = gapminder$year, text_column = gapminder$country, x_title="GDP per Capita", y_title="Life Expectancy", title='Gapminder Global Indicators', x_is_log = TRUE, scale_bubble = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.