I\'m attempting to use ggplot2 and maps to plot the names of the counties in NY state. My approach was to find the means of latitude and longitude by county (I assume this
It sorta seems like kmeans centers would be useful... Here is a poor start... its late!
center.points <- ddply(ny, .(group), function(df) kmeans(df[,1:2], centers=1)$centers)
center.points$county <- ny$county[ny$group == center.points$group]
p + geom_text(data=center.points, aes(x=V1, y=V2, label=county))