This document is adapted from the Simple Charts section of the Altair Example Gallery.

Our first step is to set up our environment:

library("altair")
library("reticulate")
library("tibble")
library("tidyr")
library("dplyr")

vega_data <- import_vega_data()

Simple Bar Chart

Altair example

Chart

Simple Heatmap

Altair example

Chart

Simple Histogram

Altair example

This example shows how to make a basic histogram, based on the vega-lite docs.

Chart