Fork me on GitHub
#incanter
<
2017-04-06
>
richiardiandrea00:04:57

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

mars0i03:04:17

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.

richiardiandrea04:04:06

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

mars0i04:04:18

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

hlship19:04:17

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:

hlship19:04:16

... 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!