Initialise a chart.
g2( data = NULL, ..., width = NULL, height = NULL, elementId = NULL, digits = NULL, reorder = TRUE )
data | A data.frame or tibble containing data to chart,
an object of class |
---|---|
... | Aspects of the chart, see |
width, height | Dimensions of the chart, accepts
any valid CSS unit e.g.: |
elementId | Valid CSS id attribute. |
digits | Maximum number of digits after the comma to show on the chart. |
reorder | Whether to internally reorder the data, namely
the |
g2(cars) %>% fig_point(asp(speed, dist))