-
@economalex A debugging idea: Create a df before running ggplot. You use factor() there and then you check if the variable is actually converted as a factor.
-
@economalex I think I already bumped into this issue once and if I recall correctly, the issue was related to turning the variable into a proper factor
-
@economalex It’s not a solution per see but it can help narrow the scope of what’s going on
-
@economalex Another option: have you tried using factor(State) with color instead of shape?