Beautiful interactive visualizations

The package highcharacter allows to build nice interactive plots and may be viewed as the best solution for displayed some changes in time.

In this case, the gapminder dataset is used and changes in population size are shown.

The example is based on the following book chapter.

Rob Kabacoff, Data Visualization with R. 2020.


What it is about

##      country      
## [1,] "Afghanistan"
## [2,] "Albania"    
## [3,] "Algeria"    
## [4,] "Angola"     
## [5,] "Argentina"  
## [6,] "Australia"
##      continent 
## [1,] "Africa"  
## [2,] "Americas"
## [3,] "Asia"    
## [4,] "Europe"  
## [5,] "Oceania"
## 1952 1957 1962 1967 1972 1977 1982 1987 1992 1997 2002 2007 
##  142  142  142  142  142  142  142  142  142  142  142  142
vars n mean sd median trimmed mad min max range skew kurtosis se
country* 1 1704 72 41 72 72 53 1 142 141 0 -1 1
continent* 2 1704 2 1 2 2 1 1 5 4 0 -1 0
year 3 1704 1980 17 1980 1980 22 1952 2007 55 0 -1 0
lifeExp 4 1704 59 13 61 60 16 24 83 59 0 -1 0
pop 5 1704 29601212 106157897 7023596 11399459 7841474 60011 1318683096 1318623085 8 78 2571683
gdpPercap 6 1704 7215 9857 3532 5221 4008 241 113523 113282 4 27 239

Interactive plots

The highcharter package allows to create nicely formatted interactive plots. In this case, the graph is about population changes in six Asian countries from 1952 to 2007.

Improved version: