Skip to contents

Initialize a chart

Initialize a Vega-Lite specification

vl_chart()
vl_chart

Top level properties

Add top level properties to a spec

vl_add_data()
vl_add_data
vl_add_data_frame()
vl_add_data_frame
vl_add_data_url()
vl_add_data_url
vl_add_properties()
vl_add_properties

Mark

Add a mark to chart spec

vl_mark_arc()
vl_mark_arc
vl_mark_area()
vl_mark_area
vl_mark_bar()
vl_mark_bar
vl_mark_boxplot()
vl_mark_boxplot
vl_mark_circle()
vl_mark_circle
vl_mark_errorband()
vl_mark_errorband
vl_mark_errorbar()
vl_mark_errorbar
vl_mark_geoshape()
vl_mark_geoshape
vl_mark_image()
vl_mark_image
vl_mark_line()
vl_mark_line
vl_mark_point()
vl_mark_point
vl_mark_rect()
vl_mark_rect
vl_mark_rule()
vl_mark_rule
vl_mark_square()
vl_mark_square
vl_mark_text()
vl_mark_text
vl_mark_tick()
vl_mark_tick
vl_mark_trail()
vl_mark_trail

Encoding

Encode a channel

vl_facet_wrap() vl_encode_wrap()
Deprecated functions from vegabrite
vl_encode()
vl_encode
vl_encode_angle()
vl_encode_angle
vl_encode_color()
vl_encode_color
vl_encode_column()
vl_encode_column
vl_encode_description()
vl_encode_description
vl_encode_detail()
vl_encode_detail
vl_encode_facet()
vl_encode_facet
vl_encode_fill()
vl_encode_fill
vl_encode_fillOpacity()
vl_encode_fillOpacity
vl_encode_href()
vl_encode_href
vl_encode_key()
vl_encode_key
vl_encode_latitude()
vl_encode_latitude
vl_encode_latitude2()
vl_encode_latitude2
vl_encode_longitude()
vl_encode_longitude
vl_encode_longitude2()
vl_encode_longitude2
vl_encode_opacity()
vl_encode_opacity
vl_encode_order()
vl_encode_order
vl_encode_radius()
vl_encode_radius
vl_encode_radius2()
vl_encode_radius2
vl_encode_row()
vl_encode_row
vl_encode_shape()
vl_encode_shape
vl_encode_size()
vl_encode_size
vl_encode_stroke()
vl_encode_stroke
vl_encode_strokeDash()
vl_encode_strokeDash
vl_encode_strokeOpacity()
vl_encode_strokeOpacity
vl_encode_strokeWidth()
vl_encode_strokeWidth
vl_encode_text()
vl_encode_text
vl_encode_theta()
vl_encode_theta
vl_encode_theta2()
vl_encode_theta2
vl_encode_tooltip() vl_encode_tooltip_array()
vl_encode_tooltip
vl_encode_url()
vl_encode_url
vl_encode_x()
vl_encode_x
vl_encode_x2()
vl_encode_x2
vl_encode_xError()
vl_encode_xError
vl_encode_xError2()
vl_encode_xError2
vl_encode_xOffset()
vl_encode_xOffset
vl_encode_y()
vl_encode_y
vl_encode_y2()
vl_encode_y2
vl_encode_yError()
vl_encode_yError
vl_encode_yError2()
vl_encode_yError2
vl_encode_yOffset()
vl_encode_yOffset

Encoding properties

Add property to an encoding channel

vl_axis_x() vl_axis_y() vl_remove_axis_x() vl_remove_axis_y()
Add axis to encoding
vl_scale_angle() vl_scale_color() vl_scale_fill() vl_scale_fillOpacity() vl_scale_opacity() vl_scale_radius() vl_scale_shape() vl_scale_size() vl_scale_stroke() vl_scale_strokeDash() vl_scale_strokeOpacity() vl_scale_strokeWidth() vl_scale_theta() vl_scale_x() vl_scale_xOffset() vl_scale_y() vl_scale_yOffset()
Add scale to encoding
vl_condition_angle() vl_condition_color() vl_condition_description() vl_condition_fill() vl_condition_fillOpacity() vl_condition_href() vl_condition_opacity() vl_condition_order() vl_condition_shape() vl_condition_size() vl_condition_stroke() vl_condition_strokeDash() vl_condition_strokeOpacity() vl_condition_strokeWidth() vl_condition_text() vl_condition_tooltip() vl_condition_url()
Add conditioning to an encoding
vl_legend_angle() vl_legend_color() vl_legend_fill() vl_legend_fillOpacity() vl_legend_opacity() vl_legend_shape() vl_legend_size() vl_legend_stroke() vl_legend_strokeDash() vl_legend_strokeOpacity() vl_legend_strokeWidth()
Add legend to encoding
vl_sort_angle() vl_sort_color() vl_sort_fill() vl_sort_fillOpacity() vl_sort_opacity() vl_sort_order() vl_sort_radius() vl_sort_shape() vl_sort_size() vl_sort_stroke() vl_sort_strokeDash() vl_sort_strokeOpacity() vl_sort_strokeWidth() vl_sort_theta() vl_sort_x() vl_sort_xOffset() vl_sort_y() vl_sort_yOffset() vl_sort_facet() vl_sort_row() vl_sort_column()
#' Add sorting to an encoding
vl_sort_angle_by_encoding() vl_sort_color_by_encoding() vl_sort_fill_by_encoding() vl_sort_fillOpacity_by_encoding() vl_sort_opacity_by_encoding() vl_sort_order_by_encoding() vl_sort_radius_by_encoding() vl_sort_shape_by_encoding() vl_sort_size_by_encoding() vl_sort_stroke_by_encoding() vl_sort_strokeDash_by_encoding() vl_sort_strokeOpacity_by_encoding() vl_sort_strokeWidth_by_encoding() vl_sort_theta_by_encoding() vl_sort_x_by_encoding() vl_sort_xOffset_by_encoding() vl_sort_y_by_encoding() vl_sort_yOffset_by_encoding() vl_sort_facet_by_encoding() vl_sort_row_by_encoding() vl_sort_column_by_encoding()
Add sort transform by encoding to encoding
vl_sort_angle_by_field() vl_sort_color_by_field() vl_sort_fill_by_field() vl_sort_fillOpacity_by_field() vl_sort_opacity_by_field() vl_sort_order_by_field() vl_sort_radius_by_field() vl_sort_shape_by_field() vl_sort_size_by_field() vl_sort_stroke_by_field() vl_sort_strokeDash_by_field() vl_sort_strokeOpacity_by_field() vl_sort_strokeWidth_by_field() vl_sort_theta_by_field() vl_sort_x_by_field() vl_sort_xOffset_by_field() vl_sort_y_by_field() vl_sort_yOffset_by_field() vl_sort_facet_by_field() vl_sort_row_by_field() vl_sort_column_by_field()
Add sort transform by field to encoding

Transforms

Add a transformation to a spec at the top level or to an encoding

vl_aggregate_angle() vl_aggregate_color() vl_aggregate_description() vl_aggregate_detail() vl_aggregate_fill() vl_aggregate_fillOpacity() vl_aggregate_href() vl_aggregate_key() vl_aggregate_latitude() vl_aggregate_latitude2() vl_aggregate_longitude() vl_aggregate_longitude2() vl_aggregate_opacity() vl_aggregate_order() vl_aggregate_radius() vl_aggregate_radius2() vl_aggregate_shape() vl_aggregate_size() vl_aggregate_stroke() vl_aggregate_strokeDash() vl_aggregate_strokeOpacity() vl_aggregate_strokeWidth() vl_aggregate_text() vl_aggregate_theta() vl_aggregate_theta2() vl_aggregate_tooltip() vl_aggregate_url() vl_aggregate_x() vl_aggregate_x2() vl_aggregate_xError() vl_aggregate_xError2() vl_aggregate_xOffset() vl_aggregate_y() vl_aggregate_y2() vl_aggregate_yError() vl_aggregate_yError2() vl_aggregate_yOffset() vl_aggregate_facet() vl_aggregate_row() vl_aggregate_column()
Add aggregate transform to encoding
vl_aggregate()
vl_aggregate
vl_bin_angle() vl_bin_color() vl_bin_description() vl_bin_detail() vl_bin_fill() vl_bin_fillOpacity() vl_bin_href() vl_bin_key() vl_bin_latitude() vl_bin_latitude2() vl_bin_longitude() vl_bin_longitude2() vl_bin_opacity() vl_bin_order() vl_bin_radius() vl_bin_radius2() vl_bin_shape() vl_bin_size() vl_bin_stroke() vl_bin_strokeDash() vl_bin_strokeOpacity() vl_bin_strokeWidth() vl_bin_text() vl_bin_theta() vl_bin_theta2() vl_bin_tooltip() vl_bin_url() vl_bin_x() vl_bin_x2() vl_bin_xError() vl_bin_xError2() vl_bin_xOffset() vl_bin_y() vl_bin_y2() vl_bin_yError() vl_bin_yError2() vl_bin_yOffset() vl_bin_facet() vl_bin_row() vl_bin_column()
Add bin to encoding
vl_bin()
vl_bin
vl_calculate()
vl_calculate
vl_density()
vl_density
vl_filter()
vl_filter
vl_flatten()
vl_flatten
vl_fold()
vl_fold
vl_impute_x() vl_impute_y()
Add impute to encoding
vl_impute()
vl_impute
vl_joinaggregate()
vl_joinaggregate
vl_lookup()
vl_lookup
vl_loess()
vl_loess
vl_pivot()
vl_pivot
vl_quantile()
vl_quantile
vl_regression()
vl_regression
vl_sample()
vl_sample
vl_stack_radius() vl_stack_theta() vl_stack_x() vl_stack_y()
Add stack transform to encoding
vl_stack()
vl_stack
vl_timeunit()
vl_timeunit
vl_window()
vl_window

Composition

Combine specs via layering or concatenation

vl_hconcat() vl_vconcat() vl_concat()
Concatenation functions
vl_layer()
Layering functions
vl_repeat_layer()
vl_repeat_layer
`|`(<vegaspec_vega_lite>) `+`(<vegaspec_vega_lite>) `&`(<vegaspec_vega_lite>)
Concatenation operators

Faceting & repeating

Use faceting or repeating to make sub-plots

vl_facet_wrap() vl_encode_wrap()
Deprecated functions from vegabrite
vl_facet()
vl_facet
vl_facet_column()
vl_facet_column
vl_facet_row()
vl_facet_row
vl_repeat_col()
vl_repeat_col
vl_repeat_layer()
vl_repeat_layer
vl_repeat_row()
vl_repeat_row
vl_repeat_wrap()
vl_repeat_wrap

Config

Add configuration

vl_config()
vl_config
vl_config_arc()
vl_config_arc
vl_config_area()
vl_config_area
vl_config_axis()
vl_config_axis
vl_config_axisBand()
vl_config_axisBand
vl_config_axisBottom()
vl_config_axisBottom
vl_config_axisDiscrete()
vl_config_axisDiscrete
vl_config_axisLeft()
vl_config_axisLeft
vl_config_axisPoint()
vl_config_axisPoint
vl_config_axisQuantitative()
vl_config_axisQuantitative
vl_config_axisRight()
vl_config_axisRight
vl_config_axisTemporal()
vl_config_axisTemporal
vl_config_axisTop()
vl_config_axisTop
vl_config_axisX()
vl_config_axisX
vl_config_axisXBand()
vl_config_axisXBand
vl_config_axisXDiscrete()
vl_config_axisXDiscrete
vl_config_axisXPoint()
vl_config_axisXPoint
vl_config_axisXQuantitative()
vl_config_axisXQuantitative
vl_config_axisXTemporal()
vl_config_axisXTemporal
vl_config_axisY()
vl_config_axisY
vl_config_axisYBand()
vl_config_axisYBand
vl_config_axisYDiscrete()
vl_config_axisYDiscrete
vl_config_axisYPoint()
vl_config_axisYPoint
vl_config_axisYQuantitative()
vl_config_axisYQuantitative
vl_config_axisYTemporal()
vl_config_axisYTemporal
vl_config_bar()
vl_config_bar
vl_config_boxplot()
vl_config_boxplot
vl_config_circle()
vl_config_circle
vl_config_concat()
vl_config_concat
vl_config_errorband()
vl_config_errorband
vl_config_errorbar()
vl_config_errorbar
vl_config_facet()
vl_config_facet
vl_config_geoshape()
vl_config_geoshape
vl_config_header()
vl_config_header
vl_config_headerColumn()
vl_config_headerColumn
vl_config_headerFacet()
vl_config_headerFacet
vl_config_headerRow()
vl_config_headerRow
vl_config_image()
vl_config_image
vl_config_legend()
vl_config_legend
vl_config_line()
vl_config_line
vl_config_mark()
vl_config_mark
vl_config_point()
vl_config_point
vl_config_projection()
vl_config_projection
vl_config_range()
vl_config_range
vl_config_rect()
vl_config_rect
vl_config_rule()
vl_config_rule
vl_config_scale()
vl_config_scale
vl_config_selection()
vl_config_selection
vl_config_square()
vl_config_square
vl_config_text()
vl_config_text
vl_config_tick()
vl_config_tick
vl_config_title()
vl_config_title
vl_config_trail()
vl_config_trail
vl_config_view()
vl_config_view

Selection and paramaters

Add selection or parameter to a spec

vl_add_interval_selection()
vl_add_interval_selection
vl_add_point_selection()
vl_add_point_selection
vl_config_selection()
vl_config_selection
vl_add_parameter()
vl_add_parameter

Binding

Add a binding to a selection

vl_bind_checkbox_input()
vl_bind_checkbox_input
vl_bind_direct_input()
vl_bind_direct_input
vl_bind_input()
vl_bind_input
vl_bind_radio_input()
vl_bind_radio_input
vl_bind_range_input()
vl_bind_range_input
vl_bind_select_input()
vl_bind_select_input

Resolve

Add instructions on how to resolve axis, legend, or scale in cases of composite plots

Make spec objects

As opposed to other functions that modify / add to a spec, these make a sub-component of a Vega-lite spec

vl
vl