基于R语言绘制Whittaker生物群系图

完整代码如下:

library(plotbiomes)

library(ggplot2)

library(readxl)

data<-read_excel("D:/Study/Data/site.xlsx")

cbbPalette <- c( "#AD443D","#68F261","#5FF2FA","#5E945D","#E077CB","#F7D063","#2F4487","#5A53E6","#7E9BBD")

p<-whittaker_base_plot() +

theme(panel.background = element_blank(),

panel.grid.minor = element_blank(),

legend.position = c(0.25, 0.75),legend.title = element_blank(),

panel.border = element_rect(fill = NA))+

geom_point(data = data,

aes(x = MAT,

y = MAP,colour=PFT),

size = 3,

shape = 19,

colour = "gray95",

fill = "black",

stroke = 0.5,

alpha = 0.7) +scale_color_manual(values=cbbPalette)+

theme(legend.justification = c(0, 1), # pick the upper left corner of the legend box and

legend.position = c(0, 1), # adjust the position of the corner as relative to axis

legend.background = element_rect(fill = NA), # transparent legend background

legend.box = "horizontal", # horizontal arrangement of multiple legends

legend.spacing.x = unit(0.5, units = "cm"))+

theme(axis.title.y=element_text(colour='black',size=16,face = "bold"),

axis.title.x=element_text(colour='black',size=16,face = "bold"),

axis.text.y=element_text(colour='black',size=14),

axis.text.x=element_text(colour='black',size=14,))

ggsave(file="D:/Study/Fig1_Whittaker Biome Classification.jpg",p,width =6,height = 6,dpi = 600)

相关推荐
rgb2gray4 小时前
论文详解:基于POI与出租车轨迹的城市多中心结构静态-动态多重分形特征
人工智能·python·算法·机器学习·数据分析·可解释
一叶萩Charles6 小时前
AI数据分析实战指南
人工智能·数据挖掘·数据分析
龙侠九重天6 小时前
使用 OpenClaw 进行数据分析和可视化
大数据·人工智能·python·ai·信息可视化·数据分析·openclaw
海苔苔苔苔8 小时前
数据分析技术面试常问知识点整理
数据挖掘·数据分析
国际学术会议-杨老师9 小时前
2026年信息科学与数据分析国际会议 (ICISDA 2026)
数据分析·信息科学
dinl_vin19 小时前
Python 数据分析入门系列(一):从NumPy开始
python·数据分析·numpy
CDA数据分析师干货分享1 天前
【经验贴】机械工程本科,CDA数据分析师学习及转行经验
数据挖掘·数据分析·excel·cda证书·cda数据分析师
F1FJJ1 天前
Shield CLI 的 PostgreSQL 插件 v0.4.0 已发布:支持 ER 图设计表关系,还能多人协作
网络·网络协议·postgresql·数据分析·开源软件
zzh940771 天前
Grok 4.1官网镜像实战:从零搭建智能数据分析助手,实时抓取X平台热点
数据挖掘·数据分析
SelectDB1 天前
中通快递:从 10 分钟到秒级,SelectDB 实时更新 + 倒排索引提升多维分析效率
数据库·数据分析