rg2 is a wrapper of G2 for R.
You can install rg2 from GitHub:
pak::pkg_install("glfeng318/rg2")
This is a basic example which shows you how to render a plot:
library(rg2)
g2(iris, encode('Sepal.Length','Sepal.Width',color='Species', shape='circle')) +
g2_point() +
title('iris')