Let's say I have data I'd like to be plotted in a file "animals.txt":
cat 5.2 1.0
cat 5.4 1.3
cat 5.2 1.2
dog 3.8 1.1
dog 3.5 1.5
dog 3.6 1.3
giraffe 1.3 9.7
giraffe 1.5 9.0
giraffe 1.4 9.9
I can generate a scatter plot with labels using:
plot "animals.txt" u 2:3:1 w labels
I can also vary the style of each point using something like:
plot "animals.txt" u 2:3 w points pointtype 3
Instead of using labels (which might overlap), is it possible to have the points use different point types or colors for each category? (For instance, "cat" would be in red using pointtype 3, "dog" would be in blue using pointtype 4, etc.)
I could use "lc variable" and replace the labels column with colors, but the file I'm working with has too many different labels for me to do that easily.