I have an array of data (dimensions 7489 x 3) in the form {{x1,y1,z1}, {x2,y2,z2}…{x7489, y7489, z7489}}. I would like to do a 2D plot of this using the first two elements {xi,yi} and then uze the third element zi to color code the plot. I have tried different things, none of which seem to work. Listplot does not work with Nx3 arrays, and ListDensityPlot does not seem to work either.
ListDensityPlot should work in your case as shown in this documentation example. Just reproducing it here. Get data to show a map of Illinois according to the elevation of its cities:
The first tests if your data is a matrixq, not a higher or lower dimensional array.
The second one will test if all of these are numbers.
The third will make sure all the sublists are length 3. (you could also do this using Dimensions and MatchQ)