I have a dataframe which has three columns - Places
, lat
, and long
. Places
is a list of strings, and the lat
and long
values are obtained by geocoding the list.
I can plot the lat long values using
map + geom_point(data = lat_long_vec, aes(x = lat_long_vec$lon, y = lat_long_vec$lat), size = 3, colour = "blue", shape = 19)
where map = map = qmap(location=someplacename, zoom = somezoomvalue)
However, I would like to label the points using the Places column of the dataframe. I have tried the following which hasn't worked.
map + geom_point(data = lat_long_vec, aes(x = lat_long_vec$lon, y = lat_long_vec$lat), size = 3, colour = "blue", shape = 19) + geom_text(aes(label=lat_long_vec$Places),hjust=0, vjust=0)
Can someone help? Thanks