【问题标题】:Adding Coordinates to Pan-Arctic Map on PlotSvalbard在 PlotSvalbard 上向泛北极地图添加坐标
【发布时间】:2020-10-31 16:51:00
【问题描述】:

我一直在尝试使用 PlotSvalbard 将一系列坐标映射到泛北极地图上。

我的数据是一个十进制坐标列表,每个坐标都有一个指定的名称。

我尝试使用transform_coord 函数将经纬度映射到泛北极投影,但未能有效使用。

到目前为止,我所做的任何尝试都会将所有坐标都显示在北极:

basemap(type = "panarctic", limits = 50) +
  geom_point(data = DATA, aes(x = longitude, y = latitude), color = "red")

【问题讨论】:

    标签: r ggplot2 gis cartography


    【解决方案1】:

    同样的问题。显然,您需要将纬度/经度转换为 UTM 系统。 Plotsvalbard 包含一个 transform_coord() 函数:

    utm_points <- transform_coord(lat=c(80,85), lon=c(0,120), 
              proj.og = "+proj=longlat +datum=WGS84", 
              proj.out = "+proj=stere +lat_0=90 +lat_ts=71 +lon_0=0 +k=1 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs +ellps=WGS84 +towgs84=0,0,0")
    
    basemap("panarctic") + 
     geom_point(data = utm_points, aes(x=lon.utm, y=lat.utm))
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-12-17
      • 1970-01-01
      • 2022-07-25
      • 2013-06-14
      • 2019-06-21
      • 2010-09-18
      相关资源
      最近更新 更多