数据是
> head(latlon1.df)
lat lon
1 35.86417 -95.65556
2 29.72333 -98.69444
3 29.52917 -97.46417
4 40.82806 -72.86556
5 26.73500 -81.05111
6 NA NA
ggmap(usa) +
geom_point(data = latlon1.df, mapping = aes(x = latlon1.df$lon, y = latlon1.df$lat), color = "red",size=1)
不断获得
mapping: x = ~latlon1.df$lon, y = ~latlon1.df$lat
geom_point: na.rm = FALSE
stat_identity: na.rm = FALSE
我没有得到地图或点地图已加载 ggmap 并作为地图正常工作,但点未出现在地图 position_identity