Just to share our progresses about Grapher. Grapher is a component of Roassal to draw charts. We made two significant improvements that (I think :-) make sense to share with you.
***** Box plots *****
A box and whisker plot is a diagram showing statistical distribution of a data set. This is highly important as soon as you need to understand the distribution of some data.
Here is an example: b := RTGrapher new. b extent: 50 @ 300. ds := RTBoxPlotDataSet new. ds points: #(4.3 5.1 3.9 4.5 4.4 4.9 5.0 4.7 4.1 4.6 4.4 4.3 4.8 4.4 4.2 4.5 4.4). b add: ds.
b axisX noLabel; noTick. b open
A slightly more elaborated example:
b := RTGrapher new. b extent: 400 @ 200. RTShape withAllSubclasses do: [ :cls | ds := RTBoxPlotDataSet new. ds points: (cls methodDictionary values collect: #numberOfLinesOfCode). b add: ds. ].
***** Tick Improvement *****
Ticks are now much nicer. Consider the following script:
b := RTGrapher new. ds := RTDataSet new. ds dotShape color: Roassal2.Color red. ds points: #(5 1 20 8). b add: ds. b addDecorator: (RTAverageDecorator new withLabel; labelConvertion: [ :value | ' average = ', (value round: 2) asString ]). b build. b open