Database Reference
In-Depth Information
How to do it...
For this recipe, we'll create a chart plotting the dimensions of the iris' petals:
1.
We'll create the chart, but hang on to the object created so that we can do things
with the chart, such as displaying it, later:
(def iris-petal-scatter
(c/scatter-plot
(i/sel iris :cols :Petal.Width)
(i/sel iris :cols :Petal.Length)
:title "Irises: Petal Width by Petal Length"
:x-label "Width (cm)"
:y-label "Length (cm)"))
2.
To actually display this chart, we pass it to the incanter.core/view function:
(i/view iris-petal-scatter)
The output of the preceding line resembles the following screenshot:
 
Search WWH ::




Custom Search