rbubbly: Represent multiple dimmensional data as a Gapminder-like...

Description Usage Examples

View source: R/rbubbly.R

Description

Represent multiple dimmensional data as a Gapminder-like animated plot.

Usage

1
2
3
4
5
Plot a Gapminder-like animated plot
rbubbly(dataset, x_column, y_column, bubble_column, color_column,
                    slider_column, text_column,
                    x_title=NA, y_title=NA, title=NA,
                    x_is_log=TRUE, y_is_log=FALSE,scale_bubble=1)

Examples

 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)
```

gabrielpreda/rbubbly documentation built on March 1, 2020, 7:51 p.m.