Vega scales

scale_x(
  v,
  name = zap(),
  domain = zap(),
  type = "linear",
  breaks = zap(),
  orient = "bottom",
  ...
)

scale_y(
  v,
  name = zap(),
  domain = zap(),
  type = "linear",
  breaks = zap(),
  orient = "left",
  ...
)

scale_color(v, name = zap(), range = zap(), scheme = zap(), guide = TRUE, ...)

scale_colour(v, name = zap(), range = zap(), scheme = zap(), guide = TRUE, ...)

scale_size(v, name = zap(), range = zap(), type = "linear", guide = TRUE, ...)

scale_shape(v, name = zap(), guide = TRUE, ...)

Arguments

v

A vega() object.

name

A string for an axis label. zap() is the default label. NULL removes the label.

domain

A vector of two elements to define the range.

type

One of "linear", "log", "sqrt", "temporal", "band", "category" scale types.

breaks

One of:

  • NULL for no breaks

  • zap() for default breaks

  • A vector for custom breaks

orient

One of "bottom" and "top" for scale_x(). One of "left" and "right" for scale_y().

...

Other parameters passed to vega specs.

range

Custom range specification for colour, opacity, and size.

scheme

Colour scheme.

guide

If FALSE, remove the legend.