Sometimes, we are more interested in how values change over time, or across some other progression, than we are in the values themselves. This information is latent in the data, but making it explicit makes it easier to work with and visualize.
First, we'll use these dependencies in our project.clj
:
(defproject statim "0.1.0" :dependencies [[org.clojure/clojure "1.6.0"] [incanter "1.5.5"]])
We also need to require Incanter in our script or REPL:
(require '[incanter.core :as i] 'incanter.io)
Finally, we'll use the Virginia census data. You can download the file from http://www.ericrochester.com/clj-data-analysis/data/all_160_in_51.P3.csv:
(def data-file "data/all_160_in_51.P3.csv")