当前位置:网站首页>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分类信息。
边栏推荐
- 每周小结(*63):关于正能量
- 复合非线性反馈控制(二)
- AWT common components, FileDialog file selection box
- Learn about the Internet of things protocol WiFi ZigBee Bluetooth, etc. --- WiFi and WiFi protocols start from WiFi. What do we need to know about WiFi protocol itself?
- How to implement cross domain requests
- 分布式CAP理论
- [excel] PivotChart
- HMS v1.0 appointment.php editid参数 SQL注入漏洞(CVE-2022-25491)
- How to expand all collapse panels
- Detectron: train your own data set -- convert your own data format to coco format
猜你喜欢
Detailed explanation of common APIs for component and container containers: frame, panel, scrollpane
The end of the Internet is rural revitalization
AWT common components, FileDialog file selection box
JSON Web Token----JWT和传统session登录认证对比
C语言中的函数(详解)
如何避免 JVM 内存泄漏?
Json Web token - jwt vs. Traditional session login Authentication
C语言练习题(递归)
HMS v1.0 appointment. PHP editid parameter SQL injection vulnerability (cve-2022-25491)
Detectron: train your own data set -- convert your own data format to coco format
随机推荐
Invalid revision: 3.18.1-g262b901-dirty
C實現貪吃蛇小遊戲
体验碎周报第 102 期(2022.7.4)
How to get the parent node of all nodes in El tree
Design and implementation of redis 7.0 multi part AOF
ES6 模块化
(4) Canal multi instance use
Arcpy 利用updatelayer函数改变图层的符号系统
Json Web token - jwt vs. Traditional session login Authentication
Weekly summary (*63): about positive energy
Abap:ooalv realizes the function of adding, deleting, modifying and checking
Online shrimp music will be closed in January next year. Netizens call No
gslb(global server load balance)技术的一点理解
QT get random color value and set label background color code
px em rem的区别
微信小程序使用rich-text中图片宽度超出问题
Webrtc quickly set up video call and video conference
Take you to quickly learn how to use qsort and simulate qsort
Error CVC complex type 2.4. a: Invalid content beginning with element 'base extension' was found. Should start with one of '{layoutlib}'.
JS get the attribute values nested in the object