我有以下代码:
library(ggrepel)
library(ggOceanMaps)
library(ggspatial)
library(readr)
map <- basemap(c(-180, 180, -90, 90), bathymetry = TRUE)+
ggspatial::geom_spatial_point(
data = daten_neu, aes(x = as.numeric(Longitude), y = as.numeric(Latitude), color = as.numeric(Neogloboquadrina_pachyderma...35))
)
print(map)
使用这些数据:
Latitude Longitude Neogloboquadrina_pachyderma...35
<chr> <chr> <chr>
1 8.983 51.733 1
2 44.3498 -30.267 8
3 50.9332 -41.75 602
4 36.1333 -68.9167 1
5 35.7833 -68.9333 1
6 37.65 -72.95 62
7 35.7667 -69.0833 1
8 39.1332 -42.65 2
9 5.2833 -17.0667 1
10 3.65 -18.3 14
With this I display the figure
然而,我有几个问题是我无法通过搜索网络来回答的.1.更改为.number(),这样我就可以将范围设置为300,其上的所有内容仅显示为最上面的 colored颜色
- 我怎样才能把 colored颜色 从深蓝色(低)改成红色(高)?