coord: Coordinates

Description Usage Arguments Functions Examples

Description

Configure chart coordinates axis.

Usage

1
2
3
4
5
6
7
8
9
coord_type(g, type = c("rect", "polar", "theta", "helix"), ...)

coord_rotate(g, angle = 90)

coord_scale(g, x, y)

coord_reflect(g, axis = "xy")

coord_transpose(g)

Arguments

g

An object of class g2r or g2Proxy as returned by g2() or g2_proxy().

type

Type of coordinate axis.

...

Any other options.

angle

Angle of axis rotation.

x, y

Scale of axis along x and y axis.

axis

Axis to reflect (reverse).

Functions

Examples

1
2
3
g2(cars, asp(speed, dist, color = dist)) %>%
  fig_point() %>%
  coord_type("helix")

devOpifex/g2r documentation built on Jan. 16, 2022, 12:36 a.m.