One of the most common types of charts is a scatter plot. This helps us visualize the relationship between two numeric variables.
We'll need to list Incanter as a dependency in our Leiningen project.clj
file.
:dependencies [[org.clojure/clojure "1.4.0"] [incanter "1.4.1"]]
We'll also need to enter several of Incanter's namespaces into our script or REPL.
(require '[incanter.core :as i] '[incanter.charts :as c] 'incanter.datasets)
Finally, we'll use the Iris dataset, which we saw in several recipes in Chapter 9, Clustering, Classifying, and Working with Weka.
(def iris (incanter.datasets/get-dataset :iris))