Represent multiple dimmensional data as a Gapminder-like animated plot.
1 2 3 4 5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | ---
title: "example: using rbubbly with gapminder"
author: "Gabriel Preda"
output: html_document
---
# Test rbubbly
```{r test_bubbly}
#load gapminder data
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 = 1)
```
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.