g2 | R Documentation |
g2() create an G2 options
g2(data, encode = NULL, ..., width = 640, height = 480)
data |
required. Data Frame, URL of json/csv, for liquid data is a number, for gauge data is |
encode |
encode |
... |
Other arguments passed on to methods. Not currently used. |
width |
optional default: 640 |
height |
optional default: 480 |
type |
view/spaceLayer/spaceFlex/facetCircle/facetRect/repeatMatrix |
Spec: https://g2.antv.antgroup.com/en/spec/overview
g2_point(mtcars, 'drat', 'wt')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.