2-D mapping of a categorical variable

Given a file with N rows and 3 columns: X-coordinate, Y-coordinate and Z , with the labels of a categorical variable. How to create a map that shows with coloured dots where the categories are in the X/Y plane?