Data
The data
field of a layer contains the dataset that will be used to populate the plot. There are no type restrictions on this dataset, as long as it respects the Tables interface. In particular, any one of these formats should work out of the box.
The data
helper function creates an under-defined layer, where only the data
field is populated..
using AlgebraOfGraphics
df = (a = rand(10), b = rand(10))
data(df)
AlgebraOfGraphics.Layer((), (a = [0.8207042980665948, 0.21817063730448316, 0.490954320993614, 0.8252338233263241, 0.5098600958825921, 0.41078088935732326, 0.09517498332180918, 0.5909775972994942, 0.622431668973122, 0.7506581426397256], b = [0.5716872529765835, 0.22137010495237974, 0.6699440582760756, 0.7137750491835848, 0.2751913064871354, 0.22122198640813773, 0.7011326622593086, 0.35696760327203747, 0.8329765491950041, 0.3676297872573371]), (), NamedTuple())