In this recipe, we created a dataset in Spark from random numbers. We then created a Breeze figure and set up the basic parameters. We derived x, y data from the created dataset.
We used Breeze's scatter() and plot() functions to do graphics using the Breeze library.