incanter

richiardiandrea 2017-04-06T00:18:57.405539Z

statistics newbie, is there a way to kind of reduce the amount of data by averaging, say, 10 rows at the time?

mars0i 2017-04-06T03:48:17.935873Z

you can use partition to select groups of 10 rows, and then map a function over each group that will average them. That's not Incanter--just Clojure.

richiardiandrea 2017-04-06T04:01:06.014634Z

Yeah true, I thought it would be such a common use case to have a name 😀

mars0i 2017-04-06T04:17:18.111966Z

I guess there might be something like that in Incanter. You could also use Specter, I think.

hlship 2017-04-06T19:02:17.557336Z

So if I have a line chart, how can I get the points on the same plot?

(line-chart :commit key
                    :title title
                    :group-by :kind
                    :x-label "Commit"
                    :y-label "ms"
                    :legend true)
Results in:

hlship 2017-04-06T19:03:16.577592Z

... but I'd like to overlay the actual data points on the chart. However :commit is a string; it feels like add-points is the way to go here, but I don't know my way around this stuff at all. Feeling quite stupid!