I'm plotting some points over a map using ggmap. This is the error message:
Removed 10 rows containing missing values (geom_point).
This is my code:
library(ggmaps)
library(maps)
library(DataComputing)
map <- get_map(location='san francisco', zoom=12, maptype = 'terrain', source = 'google', color = 'color')
ggmap(map) %>%
+ geom_point(aes(x=longitude, y=latitude, colour = as.numeric(total)), data=district_crimes) %>%
+ scale_color_gradient(low='beige', high='blue')
Proof that longitude and latitude are numeric.
How do get the points to plot? Thanks.