A ggplot2-inspired grammar of graphics for interactive visualisations via g2.
See the website for get started.
# install.packages("remotes")
remotes::install_github("JohnCoene/g2r")
From ggplot2 to g2r.
ggplot
->g2
aes
->asp
(aspects)geom_*
->fig_*
(figures)scale_*
->gauge_*
facet_*
->plane_*
theme_*
->motif_*
library(g2r)
g2(iris, asp(Petal.Length, Petal.Width, color = Species)) %>%
fig_point() %>%
plane_wrap(planes(Species), type = "tree")
Please note that the 'g2r' project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.