基于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)

相关推荐
小白学大数据17 小时前
抖音搜索页数据批量爬取,多关键词同步采集实现
爬虫·python·数据分析
西贝爱学习17 小时前
智能手机规格与价格数据集
数据分析·数据集
计算机毕业编程指导师18 小时前
基于Spark的性格行为数据分析与可视化系统源码 毕业设计 选题推荐 毕设选题 数据分析 机器学习 数据挖掘
大数据·python·数据挖掘·数据分析·spark·毕业设计·性格行为
QDYOKR16820 小时前
OKR管理系统怎么选?2026主流OKR工具深度解析
大数据·人工智能·信息可视化·数据挖掘·数据分析
PaperData2 天前
1988-2025年《中国人口和就业统计年鉴》全年份excel+PDF
数据库·人工智能·数据分析·经管
小王毕业啦2 天前
(1990-2024年)个股交易活跃度、个股换手率
大数据·人工智能·数据挖掘·数据分析·区块链·社科数据
小王毕业啦2 天前
2013-2023年 银行风险资产占比数据
大数据·人工智能·数据挖掘·数据分析·社科数据
云渊未归062 天前
Python获取GitCode项目信息
python·数据分析·开源·网络爬虫·gitcode
YJlio2 天前
2026年5月5日60秒读懂世界:五一档票房、油价调整、汤姆斯杯夺冠与全球风险观察
数据分析·django·飞书·仪表盘·多维表格·图表联动
Highcharts.js2 天前
数据处理新革命产品发布:Highcharts Orbit 公测-开启图表数据分析的新维度
信息可视化·数据挖掘·数据分析·highcharts