1.2.3-SNAPSHOT Arrow_down_16x16

set-data

incanter.core



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))))

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source incanter/core.clj:2498 top

(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)))
Vars in incanter.core/set-data: defmulti fn type
Used in 0 other vars

Comments top

No comments for set-data. Log in to add a comment.