color in ggplot2 legend not matching figure [duplicate]


This question already has an answer here:



I have a problem getting the legend in ggplot2 to correspond to the color in the figure. And I have extra variables in the legend. I have read many posts on similar issues but unfortunately I have not been able to apply those to this situation - successfully at least. I tried using "fill" and "scale_fill_manual()", "theme()" and several others, but to no avail yet. Hopefully I am just missing something simple here, I appreciate any suggestions!



I am making a map and my code right now is:



The plot looks like this:



enter image description here



This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Popular posts from this blog

The Dalles, Oregon

眉山市

清晰法令