Adds a histogram to an existing histogram plot, returns the modified
chart object.
Options:
:nbins (default 10) number of bins for histogram
:series-label (default x expression)
Examples:
(use '(incanter core charts stats datasets))
(doto (histogram (sample-normal 1000)
:legend true)
view
(add-histogram (sample-normal 1000 :sd 0.5)))
(with-data (get-dataset :iris)
(doto (histogram :Sepal.Length :legend true)
(add-histogram :Petal.Length)
view))
References:
http://www.jfree.org/jfreechart/api/javadoc/ http://www.jfree.org/jfreechart/api/javadoc/org/jfree/chart/JFreeChart.html
Comments top
No comments for add-histogram. Log in to add a comment.