Figures, equivalent to ggplot2's geometries.

fig_interval(g2, ..., data = NULL, inherit_asp = TRUE, name = NULL)

fig_line(g2, ..., data = NULL, inherit_asp = TRUE, name = NULL)

fig_point(g2, ..., data = NULL, inherit_asp = TRUE, name = NULL)

fig_path(g2, ..., data = NULL, inherit_asp = TRUE, name = NULL)

fig_area(g2, ..., data = NULL, inherit_asp = TRUE, name = NULL)

fig_polygon(g2, ..., data = NULL, inherit_asp = TRUE, name = NULL)

fig_schema(g2, ..., data = NULL, inherit_asp = TRUE, name = NULL)

fig_edge(g2, ..., data = NULL, inherit_asp = TRUE, name = NULL)

fig_violin(g2, ..., data = NULL, inherit_asp = TRUE, name = NULL)

fig_heatmap(g2, ..., data = NULL, inherit_asp = TRUE, name = NULL)

fig_line_stack(g2, ..., data = NULL, inherit_asp = TRUE, name = NULL)

fig_violin_dodge(g2, ..., data = NULL, inherit_asp = TRUE,
  name = NULL)

fig_point_jitter(g2, ..., data = NULL, inherit_asp = TRUE,
  name = NULL)

fig_point_stack(g2, ..., data = NULL, inherit_asp = TRUE,
  name = NULL)

fig_point_dodge(g2, ..., data = NULL, inherit_asp = TRUE,
  name = NULL)

fig_interval_stack(g2, ..., data = NULL, inherit_asp = TRUE,
  name = NULL)

fig_interval_dodge(g2, ..., data = NULL, inherit_asp = TRUE,
  name = NULL)

fig_interval_symmetric(g2, ..., data = NULL, inherit_asp = TRUE,
  name = NULL)

fig_area_stack(g2, ..., data = NULL, inherit_asp = TRUE, name = NULL)

fig_schema_dodge(g2, ..., data = NULL, inherit_asp = TRUE,
  name = NULL)

fig_venn(g2, ..., data = NULL, inherit_asp = TRUE, name = NULL)

Arguments

g2

An object of class g2r as returned by g2r.

...

Any option, aesthetic (asp), or animation (Animation).

data

A data.frame containing data to chart or a list.

inherit_asp

Whether to inherit aspects from g2r.

name

Name of figure, useful to apply functions to specific figures.

Examples

g2(cars, asp(dist, speed)) %>% fig_point() %>% fig_line() g2(fruits, asp(value, color = fruit)) %>% fig_interval_stack() %>% coord_type("theta")