Hi all,
I have a problem, and cannot see how to solve it, so I need some help.
I have a data file like this:
1 4 8 1 3 9
1 1 9 2 1 24
2 4 14 2 2 54
2 3 4 2 4 39
2 1 2 2 1 103
4 2 4 3 2 78
4 4 9 3 1 1
I would like to make a 2d histogram from this data in the following way:
- the first and 4th columns are just row numbers which have been generated by another program, so if $1==$4 we should handle the remaining $2, $3 and $5,$6 columns together.
Imagine a chess table for example, so the 2nd column is, let's say, the number side (from 1 to 8), and the 5th column is the alphabetical side of the table (from a to h, in this sense just numbers from 1 to 8, like column 2).
The 3rd and 6th columns are some kind of values.
In this way I just would like to make a 2 dimensional histogram, regarding the example above,
1 1 9
1 2 0
1 3 9
1 4 8
2 1 129 -<--- (24+2+103)
2 2 54
2 3 4
2 4 53 -<--- (39+14)
3 1 1
3 2 78
3 3 0
3 4 0
4 1 0
4 2 4
4 3 0
4 4 9
Any idea?
I have a problem, and cannot see how to solve it, so I need some help.
I have a data file like this:
1 4 8 1 3 9
1 1 9 2 1 24
2 4 14 2 2 54
2 3 4 2 4 39
2 1 2 2 1 103
4 2 4 3 2 78
4 4 9 3 1 1
I would like to make a 2d histogram from this data in the following way:
- the first and 4th columns are just row numbers which have been generated by another program, so if $1==$4 we should handle the remaining $2, $3 and $5,$6 columns together.
Imagine a chess table for example, so the 2nd column is, let's say, the number side (from 1 to 8), and the 5th column is the alphabetical side of the table (from a to h, in this sense just numbers from 1 to 8, like column 2).
The 3rd and 6th columns are some kind of values.
In this way I just would like to make a 2 dimensional histogram, regarding the example above,
1 1 9
1 2 0
1 3 9
1 4 8
2 1 129 -<--- (24+2+103)
2 2 54
2 3 4
2 4 53 -<--- (39+14)
3 1 1
3 2 78
3 3 0
3 4 0
4 1 0
4 2 4
4 3 0
4 4 9
Any idea?