我使用 ggmap 包和 API 密钥生成农民地块的地图。我想让图外(多边形外)的图像完全透明(白色)。你能给我一个解决方案吗?
ggmap(map) +
geom_polygon(data = gpx_data, aes(x = lon, y = lat), color = "white",alpha=0.5, size = 1) +
labs(title = title, x = "Longitude", y = "Latitude") +
theme(plot.title = element_text(hjust = 0.5)) +
theme(legend.position = "none")+
coord_fixed(1 / cos(mean(gpx_data$lat) * pi / 180))+
theme(axis.title = element_text(size = 14),
axis.text = element_text(size = 12))
我使用 ggmap 包和 API 密钥生成农民地块的地图。我想让图外(多边形外)的图像完全透明(白色)。你能给我一个解决方案吗?