Create a new vega visualisation

vega(data = NULL, encoding = enc(), width = 300, height = 300)

Arguments

data

A data frame.

encoding

A list of aethetic encodings via enc().

width, height

Data plotting width and height.