November 2017
Beginner
316 pages
6h 40m
English
We have previously seen what scatter plots are when we were working with the PyPlot library. Here too, we will see how to create a scatter plot in Vega using a function named scatterplot.
Here is a simple example of a scatter plot:
using Vega, Distributions d1 = MultivariateNormal([0.0, 0.0], [1.0 0.9; 0.9 1.0]) d2 = MultivariateNormal([10.0, 10.0], [4.0 0.5; 0.5 4.0]) points = vcat(rand(d1, 1000)', rand(d2, 1000)') x = points[:, 1] y = points[:, 2] group = vcat(ones(Int, 1000), ones(Int, 1000) + 1) scatterplot(x = x, y = y, group = group)

With this, we will wrap up our discussion on one of the most amazing data visualizing libraries ...
Read now
Unlock full access