Learn R Programming

g2r (version 0.1.0)

g2r: Initialise

Description

Initialise a g2r chart.

Usage

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

Run this code
# NOT RUN {
g2(cars, asp(speed, dist)) %>% 
  fig_point()

# }

Run the code above in your browser using DataLab