library(ggmap)
library(ggplot2)
st <- read.csv("C:/Python27/csv/daily.csv")
st$longitude[1]
st$latitude[1]
arizona <- get_map(location = c(lon = st$longitude[1], lat =st$latitude[1]), zoom = 6)
#plot the latitude and longitude on the google map.
ggmap(arizona) + coord_fixed(ylim = c(31,37.6),ratio=2/1)+
geom_point(data = st, aes(x = longitude, y = latitude), size = 3, shape = 21)
这是我的代码,我在谷歌地图上绘制了积分。我想知道我是否可以绘制天气图来显示每个绘图点的温度。下面是我用于代码的csv文件 -
Name,latitude,longitude,temperature,survey.point,
Madera 2,37.02,-120.19,140,no,
Five Points,36.34,-120.11,257,no,
Los Banos,37.01,-120.76,97,no,
Shafter/USDA,35.53,-119.28,12,no,
Arvin-Edison,35.21,-118.78,5,no