It's really funny that Republicans of today try to link themselves to Lincoln's Republican party. Newsflash: Lincoln and the Republicans of his day beat the tar out of the southern states. The base of the Republican party today is the southern (most racist) states.
Conversely, when the Democrats were the party of racism their base was the southern states. The Democrats of today are the party that elected the first President of any other ethnicity than white male.
So here the moral of the story: Names change easier than ideologies.
Here is a link to historical voting by states.
You can see the racist southern states changing from blue to red in the 1960's.