I'm using Incanter 1.9 and I can't get :group-by
option in scatter-plot function to work. The statement I am currently trying is:
(view (scatter-plot :Sepal.Length :Sepal.Width :group-by :Species :data (get-dataset :iris)))
It produces this error:
ClassCastException java.lang.String cannot be cast to java.lang.Number clojure.lang.RT.doubleCast (RT.java:1222)
What am I doing wrong? Is this the correct usage of :group-by
in scatter-plot?