r - 指标物种图(带分类轴的气泡图)
问题描述
ggplot2/R 的新手,所以我非常感谢有人为Species
跨不同站点North
、South
、East
、West
、North.east
、Northwest
、South.west
、South.east
(X) 的两个分类轴 (Y) 创建气泡图。此处列出的值是与地点/物种相关的指标值。另外-如何确定值范围=气泡的大小?例如。值 =0.8-0.9 = 最大尺寸..
样本数据
structure(list(Species = c(13359L, 12867L, 11646L, 13214L, 11413L,
3413L, 13249L, 11374L, 13267L, 2059L, 12941L, 13123L, 1904L,
13252L, 12915L, 12749L, 11577L, 995L), North = c(0.94, 0, 0.9,
0, 0.88, 0.87, 0, 0, 0.86, 0, 0.84, 0.83, 0.83, 0, 0, 0.82, 0.82,
0.81), South = c(0, 0.92, 0.9, 0, 0.88, 0, 0.87, 0.87, 0.86,
0.86, 0.84, 0.83, 0, 0.82, 0, 0.82, 0.82, 0), West = c(0, 0.92,
0.9, 0, 0.88, 0.87, 0.87, 0.87, 0.86, 0.86, 0.84, 0, 0.83, 0.82,
0, 0.82, 0.82, 0), East = c(0, 0.92, 0.9, 0, 0, 0.87, 0.87, 0.87,
0, 0.86, 0.84, 0, 0, 0.82, 0, 0.82, 0.82, 0), North.east = c(0,
0.92, 0.9, 0, 0.88, 0.87, 0.87, 0.87, 0.86, 0.86, 0, 0.83, 0,
0.82, 0, 0, 0.82, 0.81), Northwest = c(0, 0, 0, 0.88, 0, 0.87,
0.87, 0.87, 0, 0.86, 0.84, 0, 0, 0.82, 0, 0, 0, 0), South.west = c(0,
0.92, 0.9, 0.88, 0.88, 0, 0.87, 0, 0.86, 0.86, 0.84, 0.83, 0,
0, 0, 0.82, 0.82, 0), South.east = c(0, 0.92, 0.9, 0, 0.88, 0,
0, 0.87, 0.86, 0, 0.84, 0.83, 0.83, 0, 0, 0.82, 0.82, 0)), class = "data.frame", row.names = c(NA,
-18L))
谢谢 !!!
解决方案
推荐阅读
- ruby-on-rails - 为用户识别重复的多封电子邮件
- reactjs - 开玩笑 - 反应 - 如何比较包含“Function onClick”的渲染输出
- python - ValueError:没有足够的索引器用于标量访问(设置)
- c++ - 在 C++ 中输出一个数字三角形
- azure-devops - 在 Powershell 中启动和停止函数应用
- python - 从 pandas.describe() 获得有意义的结果
- python-3.x - 基于 Pandas DataFrame 中的两列添加空行
- database - 如何填补 Firestore 中缺失数据的“空白”或确保其完整?
- spring-boot - 在 Spring Webflux 中结合非阻塞和阻塞调用并返回结果
- aws-lambda - 无服务器框架 Lamba 集成 - 请求模式验证