Drawing a Julia scatter diagram of Iris data using Gadfly
Gadfly is one of the major graphics packages available. In this example, we will be using the iris dataset as the source.
How to do it...
We can use this script:
using RDatasets, Dataframes, Gadfly set_default_plot_size(5inch, 5inch/golden) describe(dataset("datasets", "iris")) plot(dataset("datasets", "iris"), x="SepalWidth", y="SepalLength", color="Species")
We can see the described output:
![](https://static.packt-cdn.com/products/9781788839440/graphics/8ebf67ae-09bc-4f43-a975-85fa7b79659f.png)
This is followed by the iris data plot:
![](https://static.packt-cdn.com/products/9781788839440/graphics/3f3b66a4-e995-4080-99a0-1383cf37970e.png)