Aliases an aspect, this changes the name of the aspects when displayed in axis titles, tooltips, labels, and other places.

aka(g, asp, alias)

Arguments

g

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

asp

Bare name of aspect to alias.

alias

A string defining the alias.

Examples

# see tooltip
g2(cars, asp(speed, dist)) %>%
  fig_point() %>%
  aka(dist, "SO FAR")