g2r: Initialise

Description Usage Arguments Examples

Description

Initialise a g2r chart.

Usage

1
2
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

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

JohnCoene/g2r documentation built on March 6, 2021, 8:11 p.m.