(defmulti set-data
"
Examples:
(use '(incanter core charts datasets))
(def data (get-dataset :iris))
(def table (data-table data))
(view table)
;; now view only a subset of the data
(set-data table ($where {:Petal.Length {:gt 6}} data))
;; use sliders to dynamically select the query values
(let [data (get-dataset :iris)
table (data-table data)]
(view table)
(sliders [species [\"setosa\" \"virginica\" \"versicolor\"]
min-petal-length (range 0 8 0.1)]
(set-data table ($where {:Species species
:Petal.Length {:gt min-petal-length}}
data))))
"
(fn [obj & more] (type obj)))
Used in 0 other vars
Comments top
No comments for set-data. Log in to add a comment.