Skip to contents

Add SampleTransform to a vega-lite spec.

Usage

vl_sample(spec, sample = NULL, .object = NULL)

Arguments

spec

An input vega-lite spec

sample

The maximum number of data objects to include in the sample.

Default value: 1000

.object

Directly input an object, rather than creating one via the other arguments. Should not be used in conjunction with the other arguments other than spec. Objects can be of type: SampleTransform

Value

A modified Vega-Lite Spec