Итак, мое сообщение об ошибке здесь:
library(ggplot2)
df <- data.frame(stringsAsFactors=FALSE, INTER1 = c(1, 2, 3, 4, 7, 8), LATITUDE = x, LONGITUDE = y)
eastern_map +
geom_point(data = df, aes(x = LONGITUDE, y = LATITUDE, color = INTER1), size=1, alpha=0.5) +
theme(legend.position = "bottom")
Блюдо: 8 х 3
INTER1 LATITUDE LONGITUDE
1 2 8.11 -11.6
2 2 8.11 -11.6
3 2 7.96 -11.7
4 2 7.96 -11.7
5 2 7.96 -11.7
6 2 7.96 -11.7
7 4 7.62 -11.8
8 1 7.61 -11.8
Error in eastern_map + geom_point(data = df, aes(x = LONGITUDE, y = LATITUDE, :
non-numeric argument to binary operator
In addition: Warning message:
Incompatible methods ("Ops.raster", "+.gg") for "+"