Htmlwidget to create interactive visualisations with JavaScript library tui-chart
You can create various type of chart : bar, column, line, area, boxplot, scatter, heatmap, treemap, radar, pie.
library(gapminder)
library(tuichartr)
# Datas
n_countries <- gapminder %>%
filter(year == 2007) %>%
count(continent, sort = TRUE)
# Chart
tuichart("bar") %>%
add_data(n_countries, aes(x = continent, y = n)) %>%
tui_chart(title = "Countries by continent in 2007") %>%
tui_xAxis(title = "Number of countries") %>%
tui_legend(visible = FALSE) %>%
tui_series(showLabel = TRUE)