I would like to plot y×x from a list with 3 levels using ListDensityPlot. Each sublevel of the list have coordinates of the type
{{x,y,z1}, {x,y,z2}, {x,y,z3}, {x,y,z4}}
I would like to represent z1(x,y) → red color, z2(x,y) → blue, z3(x,y) → green, and z4(x,y) → orange.
At each point (x,y), if z1(x,y)
has the highest value in relation to z2(x,y)
, z3(x,y)
and/or z4(x,y)
, to color the respective point with red color. If at some point (x,y), z2(x,y)
has the largest value in relation to z1(x,y)
, z3(x,y)
, and z4(x,y)
to color that point with blue. If at any point (x,y), z3(x,y)
has a value greater than z1(x,y)
, z2(x,y)
and/or z4(x,y)
, then to color the respective point with green. Finally, if at any point (x,y), z4(x,y)
has a value greater than z1(x,y)
, z2(x,y)
, and/or z3(x,y)
, then to color the respective point with orange. The figure below shows the expected scheme.
data={{{1, 1, 1057847917}, {1, 1, 1058623892}, {1, 1, 1074383916}, {1, 1, 1010441690}}, {{1, 2, 1044027491}, {1, 2, 1075424963}, {1, 2, 1057484463}, {1, 2, 1024094048}}, {{1, 3, 1029187844}, {1, 3, 1078261789}, {1, 3, 1040954225}, {1, 3, 1036130391}}, {{1, 4, 1013873639}, {1, 4, 1078590140}, {1, 4, 1024684033}, {1, 4, 1048582121}}, {{100, 98, 1077712544}, {100, 98, 1009779118}, {100, 98, 1057483481}, {100, 98, 964942056}}, {{100, 99, 1069779590}, {100, 99, 1025926966}, {100, 99, 1072815469}, {100, 99, 979036982}}, {{100, 100, 1074955040}, {100, 100, 1042207464}, {100, 100, 1063887265}, {100, 100, 993210061}};
ListContourPlot[Ordering[data[[All]], -1], PlotPoints -> 50, ContourShading -> {Red, Blue, Green, Orange}]
can anybody help me?