scale_y_linear {vegalite}R Documentation

Linear Scale

Description

Linear Scale

Usage

scale_y_linear(vl, domain = NULL, range = NULL, clamp = NULL,
  nice = NULL, zero = NULL)

Arguments

vl

Vega-Lite object

domain

Custom domain values. For quantitative data, this can take the form of a two-element array with minimum and maximum values.

range

The range of the scale represents the set of output visual values. Vega-Lite automatically determines appropriate range based on the scale’s channel and type, but range property can be provided to customize range values.

clamp

if true, values that exceed the data domain are clamped to either the minimum or maximum range value. Default value: derived from scale config (true by default) Supported Types: only linear, pow, sqrt, and log

nice

If true, modifies the scale domain to use a more human-friendly number range (e.g., 7 instead of 6.96). Default value: true only for quantitative x and y scales and false otherwise.

zero

If true, ensures that a zero baseline value is included in the scale domain. Default value: true if the quantitative field is not binned.

References

Vega-Lite Scales spec


[Package vegalite version 0.6.1 Index]