I have a categorical variable along one of my plotting axes, and certain levels of the variable belong to different “groups”. Is there a way to color the text displaying each categorical level on my plot by the group that it belongs to? Even if I have to hand construct the color vector outside of the plotting function, that would be fine. As of now, it seems that there’s only an option (using themes) to color text but all text has to be that color.
Example: my x-axis labels are “Protege”, “RAV4”, “Highlander”, “Camry”, “Expedition” and I want to color by the car company, so I want these to be colored “blue”, “red”, “red”, “red”, “green”

