-
Notifications
You must be signed in to change notification settings - Fork 632
Closed
Description
I am trying to plot an additional variable using colour:
p = ggplot(mds, aes(x = coord.1, y = coord.2, label = City, colour = Division)) + geom_text()
This works fine in Rstudio and produces:
FYI, the head of my data looks like this
head(mds)
State City coord.1 coord.2 X2013.rank Division
1 Alabama HUNTSVILLE 1.561284 0.2228790 126 East South Central
2 Alabama MOBILE 6.088862 0.8343259 122 East South Central
3 Alabama BIRMINGHAM 9.978292 -3.6507234 101 East South Central
4 Alabama MONTGOMERY 15.454877 -4.8520206 111 East South Central
5 Arizona TUCSON 23.225289 -0.4438650 33 Mountain
6 Arizona PEORIA -7.283954 9.1252792 149 Mountain
Thanks!!
Metadata
Metadata
Assignees
Labels
No labels