g2r

Grammar of Graphics with G2 for R.

Installation

You can install the 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.

Documentation