当前位置:网站首页>R统计绘图-随机森林分类分析及物种丰度差异检验组合图
R统计绘图-随机森林分类分析及物种丰度差异检验组合图
2022-07-04 06:13:00 【静默人声】
此文主要涉及随机森林组间变量重要性和物种丰度差异检验绘图,包含以下几部分内容:
1)随机森林分类;
2)随机森林分类变量重要性绘图;
3)物种丰度差异检验绘图
4)随机森林分类变量重要性及物种丰度差异组合图
1. 数据准备
此处使用包含分类信息的虚构微生物otu数据,用于构建随机森林分类模型。
# 1.1 导入数据
setwd("D:\\EnvStat\\公众号文件\\随机森林分析") # 设置工作路径
##后续合并数据表时,物种名必须一样,
##所以导入的数据表尽量不要有特殊符号。
#dir()
#file.show("otu.csv")
otu = read.csv("otu.csv",row.names = 1,header = TRUE,check.names = FALSE,stringsAsFactors = FALSE) # 微生物组数据
dim(otu)
head(otu)
图1|原始otu表,otu.csv。前两列为分类信息,后面分析只使用depth分类信息。
边栏推荐
- 509. 斐波那契数、爬楼梯所有路径、爬楼梯最小花费
- How to implement cross domain requests
- js如何将秒转换成时分秒显示
- QT get random color value and set label background color code
- MySQL的information_schema数据库
- Kubernets first meeting
- How to implement lazy loading in El select (with search function)
- Arc135 a (time complexity analysis)
- MySQL information_ Schema database
- C realize Snake games
猜你喜欢
Win10 clear quick access - leave no trace
体验碎周报第 102 期(2022.7.4)
如何实现视频平台会员多账号登录
509. Fibonacci number, all paths of climbing stairs, minimum cost of climbing stairs
JSON Web Token----JWT和傳統session登錄認證對比
分布式CAP理论
How to expand all collapse panels
746. Climb stairs with minimum cost
How to avoid JVM memory leakage?
Practical gadget instructions
随机推荐
Yiwen unlocks Huawei's new cloud skills - the whole process of aiot development [device access - ESP end-to-side data collection [mqtt]- real time data analysis] (step-by-step screenshot is more detai
gslb(global server load balance)技术的一点理解
js如何将秒转换成时分秒显示
Steady! Huawei micro certification Huawei cloud computing service practice is stable!
C實現貪吃蛇小遊戲
测试岗的中年危机该如何选择?是坚守还是另寻出路?且看下文
Webrtc quickly set up video call and video conference
报错cvc-complex-type.2.4.a: 发现了以元素 ‘base-extension‘ 开头的无效内容。应以 ‘{layoutlib}‘ 之一开头。
Impact relay jc-7/11/dc110v
The difference between PX EM rem
Kubernets first meeting
2022.7.2-----leetcode. eight hundred and seventy-one
Component、Container容器常用API详解:Frame、Panel、ScrollPane
px em rem的区别
[March 3, 2019] MAC starts redis
体验碎周报第 102 期(2022.7.4)
MySQL installation and configuration
JS execution mechanism
Fast power (template)
HMS v1.0 appointment. PHP editid parameter SQL injection vulnerability (cve-2022-25491)