Initialise a g2r chart.

g2(data = NULL, asp = NULL, ..., render = TRUE, width = NULL,
  height = NULL, elementId = NULL)

Arguments

data

A data.frame containing data to chart.

asp

Mapping aesthetics as returned by asp.

...

Any general options.

render

Whether to render the chart.

width, height

Dimensions of chart.

elementId

ID of DOM container.

Examples

g2(cars, asp(speed, dist)) %>% fig_point()