Hi,
I have a variable that consists of vector of integers and I would like to plot a heat map with the count of each element, ideally I would like these to be grouped within bins of variable sizes, due to the fact that there is no limit on the range of the values. I can simply split up the vector modifying the logstash filter but my problem doesn't change.
A simplified view of the input data could be the following:
doc1 doc2 doc3 doc4 doc5 doc6
vec[0] 1 1 2 2 2 1
vec[1] 2 2 2 2 2 2
vec[2] 2 3 3 2 2 3
vec[3] 3 3 4 4 3 4
vec[4] 3 2 2 3 5 5
vec[5] 4 4 5 5 3 2
And what I would like to achieve is something like this:
1 2 3 4 5 (value)
0 3 3 0 0 0
1 0 6 0 0 0
2 0 3 3 0 0
3 0 0 3 3 0
4 0 2 2 0 2
5 0 1 1 2 2
(idx)
Any help would be appreaciated.
Thanks.