我正在尝试使用 plotGoogleMaps 来绘制纬度和经度值
代码是:
streetCrime = read.csv("C:/Users/DAKSHA/Google Drive/BE Project/Daksha/Datasets/BaltimoreHomicide.csv")
coordinates(streetCrime) = ~Longitude + Latitude
proj4string(streetCrime) = CRS("+proj=longlat +datum=WGS84")
m<-plotGoogleMaps(streetCrime,filename='myMap1.jpg')
我收到此错误:
Error in plotGoogleMaps(streetCrime, filename = "myMap1.jpg") :
no slot of name "data" for this object of class "SpatialPoints"
请帮忙!
我正在使用 plotGoogleMaps 1.3 版