A Julia package for generating visualizations in Vega
Getting Started
Visualization Primitives
Creating A Visualization From Scratch
Arguments:
v::VegaVisualization
pctXrange::Real = 0.05
pctYrange::Real = 0.05
This function mutates :VegaVisualization
, adding a random amount of noise to data as a means of remedying ‘overplotting’. The pctXrange/pctYrange
arguments is the percentage of the data series range allowable (+/-) to add to the data. Academic literature suggests that values greater than 0.1/10% is excessive.
x = rand(1:10, 500)
y = rand(0:10, 500) + x
a = scatterplot(x = x, y = y)
jitter!(a)
x = rand(1:10, 500)
y = rand(0:10, 500) + x
a = scatterplot(x = x, y = y)
jitter!(a, pctXrange = 0.1, pctYrange = 0)