g2_coord: <Add Title>

Description Usage Arguments References Examples

Description

<Add Description>

Usage

1
2
g2_coord(g2, type = "rect", cfg = NULL, rotate = NULL,
  scale = NULL, reflect = NULL, transpose = FALSE, name = NULL)

Arguments

type

The type of coordinate system.

  • "rect"

  • "polar"

  • "theta"

  • "helix"

  • "map"

  • "gauge"

  • "clock"

transpose

Logical to swap x and y axes

References

https://www.yuque.com/antv/g2-docs/api-chart#ufv0rv

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
iris %>%
g2_R() %>%
 g2_chart(theme = "dark") %>%
 g2_coord(type = "polar", reflect = c("reflect", "x"), transpose = "transpose", scale = c("scale", 1, -1), rotate = c("rotate", 90)) %>%
 g2_geom(
   x = Sepal.Width,
   y = Sepal.Length,
   type = "interval",
   color = Species,
   adjust = c("stack")
 )

joeybellerose/g2R documentation built on May 17, 2019, 1:14 a.m.