g2r
g2r copied to clipboard
:chart_with_downwards_trend: Grammar of graphics for interactive visualisation using G2.js
Installation
You can install package from Github.
# install.packages("remotes")
remotes::install_github("devOpifex/g2r")
Example
library(g2r)
g2(cars, asp(speed, dist, color = dist)) %>%
fig_point(asp(size = dist)) %>%
gauge_color_viridis()

Limitations
g2r currently does not work well with large datasets (performance drop), and some features are still under development, namely rmarkdown actions, shiny proxies, and maps. Theming is currently rather unwieldy.