专栏名称: 气象学家
【气象学家】公众号平台为您解读最新气象科研进展、分享气象实用编程技巧、追踪气象即时资讯。欢迎加入气象AI和Python交流群以及气象博士群!与5W+的专业人士一起交流互动!
今天看啥  ›  专栏  ›  气象学家

气象编程 | 模仿SCI顶刊绘制地图散点图

气象学家  · 公众号  ·  · 2024-06-20 14:24
    

文章预览

  第一时间获取气象科研资讯 『 气象学家 』 公众号 交流群 加入 R语言绘制地图散点图: # 加载R包 library(geojsonsf) library(sf) library(ggplot2) library(cowplot) library(tidyverse) library(ggspatial) library(gguidance) library(dplyr) # 绘制中国省份地图着色图 China_map=read_sf( "./China_p.json" ) df"./capital617.csv",fileEncoding= "gbk" ) # 地图散点图1 p1=ggplot(China_map)+   geom_sf(color= 'black' ,fill= "#eebd96" ,size=0.8)+ #地图线条粗细   annotation_scale(location =  "bl" , width_hint = 0.3) + #添加比例尺并调整位置及长度   annotation_north_arrow(location =  "tl" , which_north = F,                           pad_x = unit(0.05,  "in" ), pad_y = unit(0.05,  "in" ),                          style = north_arrow_nautical)+ #添加指北针,指北针类型style有north_arrow_orienteering;north_arrow_fancy_orienteering;north_arrow_minim ………………………………

原文地址:访问原文地址
快照地址: 访问文章快照
总结与预览地址:访问总结与预览