If I have a list and plot it:
sample={{0.0758227, 2.76751, "C"}, {0.230704, 2.773, "B"}, {0.25679, 2.66845,
"S"}};
ListPlot[sample[[All,{1,2}]]]
Now I would like to print each point with a colour based on the third column, say if I have an association:
<|"B" -> 1, "C" -> 2, "S" -> 3|>
then the numbers would be indices of some ColorData
, say: ColorData[97] /@ Range[3]
, then everything that has "B" in the last column is plotted blue, "C" is plotted orange and "S" is plotted green.
Also, I should mention that the sample above is really just a sample, the real list has on the order $10^5$ rows, however, the number of distinct letters in the last column is about 20.
I have found some answers but they deal with plotting each point with different colour.