Installation

Functions to help install the Python Altair library

install_altair()

Install Altair Python package

check_altair()

Check the Altair installation

altair_version()

Installed versions of Altair, Vega, etc.

Charts

Functions and objects to construct chart-specifications

alt

Altair object

import_vega_data()

Import Vega datasets

as_chart()

Create Altair chart from vegaspec

as_vegaspec(<altair.vegalite.v4.api.TopLevelMixin>)

Coerce to vegaspec

`|`(<altair.vegalite.v4.api.TopLevelMixin>) `+`(<altair.vegalite.v4.api.TopLevelMixin>) `&`(<altair.vegalite.v4.api.TopLevelMixin>)

Altair plot concatenation

Rendering

Rendering functions re-exported from vegawidget

vegawidget

Create a Vega/Vega-Lite htmlwidget

vega_embed

Vega embed options

vw_set_base_url

Set base URL

knit_print.altair.vegalite.v4.api.TopLevelMixin()

Knit-print method

image vw_to_svg vw_to_bitmap vw_write_png vw_write_svg

Create or write image

Package

Overview of the package

altair altair-package

altair: Create and embed Vega-Lite charts using the Altair Python package

Deprecated

These functions are available in vegawidget

vw_as_json()

Coerce vegaspec to JSON

vegawidgetOutput()

Shiny-output for vegawidget

renderVegawidget()

Render shiny-output for vegawidget