legend_color: Legend settings (color)

Description Usage Arguments

View source: R/legend.r

Description

Legend settings (color)

Usage

1
2
legend_color(vl, orient = NULL, title = NULL, format = NULL,
  short_time_labels = NULL, value = NULL, remove = FALSE)

Arguments

vl

a Vega-Lite object

orient

the orientation of the legend. One of "left" or "right". This determines how the legend is positioned within the scene.

title

the title for the legend.

format

the formatting pattern for axis labels. This is D3’s number format pattern for quantitative axis and D3’s time format pattern for time axis.

short_time_labels

whether month and day names should be abbreviated.

value

explicitly set the visible legend values.

remove

if TRUE, there will be no legend for this aesthetic.


vegalite documentation built on May 2, 2019, 10:46 a.m.