Returns a xy-plot object of the given function over the range indicated
by the min-range and max-range arguments. Use the 'view' function to
display the chart, or the 'save' function to write it to a file.
Options:
:title (default 'Histogram') main title
:x-label (default x expression)
:y-label (default 'Frequency')
:legend (default false) prints legend
:series-label (default x expression)
:step-size (default (/ (- max-range min-range) 500))
See also:
view, save, add-points, add-lines
Examples:
(use '(incanter core stats charts))
(view (function-plot sin (- Math/PI) Math/PI))
(view (function-plot pdf-normal -3 3))
(defn cubic [x] (+ (* x x x) (* 2 x x) (* 2 x) 3))
(view (function-plot cubic -10 10))
Comments top
No comments for function-plot. Log in to add a comment.