I have 3 dimensions that I want to plot, and I want the third dimension to be color.
This will be in R by the way. For instance, my data looks like this
x = [1,2,3,4,1,5,6,3,4,7,8,9]
y = [45,32,67,32,32,47,89,91,10,12,43,27]
z = [1,2,3,4,5,6,7,8,9,10,11,12]
I am trying to use filled.contour, but it giving me an error saying x and y must be in increasing order. But I'm not really sure how to arrange my data such that that is true. Because if I arrange x in increasing order, then y will not be in increasing order.
It is also feasible for me to do a non-filled contour method where it is just data points that are colored. How can I do this in R. Any suggested packages? Please use specific examples. Thanks!
And if you want to check the coloring you can label the points with the z value:
Another option is to use package:akima which does interpolations on irregular (non)-grids: