powered by
Configure chart coordinates axis.
coord_type(g2, type = c("rect", "polar", "theta", "helix"), ...)coord_rotate(g2, angle = 90)coord_scale(g2, sx, sy)coord_reflect(g2, axis = "xy")coord_transpose(g2)coord(type = c("rect", "polar", "theta", "helix"), rotate = NULL, sx = NULL, sy = NULL, reflect = NULL, transpose = FALSE, ...)
coord_rotate(g2, angle = 90)
coord_scale(g2, sx, sy)
coord_reflect(g2, axis = "xy")
coord_transpose(g2)
coord(type = c("rect", "polar", "theta", "helix"), rotate = NULL, sx = NULL, sy = NULL, reflect = NULL, transpose = FALSE, ...)
An object of class g2r as returned by g2r.
g2r
Type of coordinate axis.
Any other options.
Angle of axis rotation.
Scale of axis along x and y axis.
x
y
Axis to reflect (reverse).
Corresponds to arguments of other functions listed here.
# NOT RUN { g2(cars, asp(speed, dist, color = dist)) %>% fig_point() %>% coord_type("helix") g2(cars, asp(speed, dist, color = dist)) %>% fig_point(coord("helix")) # }
Run the code above in your browser using DataLab