Learn R Programming

vegalite (version 0.6.1)

config_text: Text config

Description

Text config

Usage

config_text(vl, angle = NULL, align = NULL, baseline = NULL, dx = NULL, dy = NULL, radius = NULL, theta = NULL, format = NULL, short_time_labels = NULL, opacity = NULL)

Arguments

vl
a Vega-Lite object
angle
rotation angle of the text, in degrees.
align
horizontal alignment of the text. One of left, right, center.
baseline
vertical alignment of the text. One of top, middle, bottom.
dx, dy
horizontal/vertical in pixels, between the text label and its anchor point. The offset is applied after rotation by the angle property.
radius
polar coordinate radial offset, in pixels, of the text label from the origin determined by the x and y properties.
theta
polar coordinate angle, in radians, of the text label from the origin determined by the x and y properties. Values for theta follow the same convention of arc mark startAngle and endAngle properties: angles are measured in radians, with 0 indicating “north”.
format
ormatting pattern for text value. If not defined, this will be determined automatically
short_time_labels
whether month names and weekday names should be abbreviated.
opacity
0-1

References

Vega-Lite Mark spec