Learn R Programming

vegalite (version 0.6.1)

timeunit_y: How to encode y-axis time values

Description

How to encode y-axis time values

Usage

timeunit_y(vl, unit)

Arguments

vl
Vega-Lite object
unit
the property of a channel definition sets the level of specificity for a temporal field. Currently supported values are 'year', 'yearmonth', 'yearmonthday', 'yearmonthdate', 'yearday', 'yeardate', 'yearmonthdayhours' and 'yearmonthdayhoursminutes' for non-periodic time units & 'month', 'day', 'date', 'hours', 'minutes', 'seconds', 'milliseconds', 'hoursminutes', 'hoursminutesseconds', 'minutesseconds' and 'secondsmilliseconds' for periodic time units.

References

Vega-Lite Time Unit

Examples

Run this code
# see timeunit_y()

Run the code above in your browser using DataLab