R 和plotly 中的高分辨率地图

问题描述 投票:0回答:1

plotly中的分辨率参数似乎对我的地图没有任何影响

library(tidyverse)
library(plotly)
library(rnaturalearth)
library(sf)


df <- data.frame("lon"=c(134.26,132.40,
                         132.96,132.96,134.03),
                 "lat"=c(33.52,33.38,
                         33.98,32.80,34.04))
points.sf <- st_as_sf(df, coords=c("lon","lat"))
st_crs(points.sf) <- 4326

g <- list(
  fitbounds = "locations", projection = list(type = 'mollweide'),
  showland = TRUE,landcolor = "white",
  showocean=TRUE, oceancolor="LightBlue",
  resolution=1000
)

points.sf %>% plot_geo() %>% layout(geo = g)

无论我将分辨率值设置为 1 还是 10000,轮廓图都保持不变(低分辨率)。这是绘图限制吗?在 GIS stackexchange 交叉发布:https://gis.stackexchange.com/questions/475642/high-resolution-map-in-r-and-plotly

r ggplot2 plotly maps
1个回答
0
投票

奇怪的是,分辨率仅在 50 到 110 范围内有效。超出该范围的值无法解析为这些上限和下限,它们使整个论证无效。

© www.soinside.com 2019 - 2024. All rights reserved.