I plotted the following graph:
data(iris) plot(iris$Sepal.Length, iris$Sepal.Width, col = iris$Species) legend("topright", legend = levels(iris$Species), col = 1:3, pch = 21)
And my graph ends up looking like this:
I'm not sure what is going on. I've asked friends to test the code and they don't run into the same issue. I've also tried restarting R and my laptop.