当前位置:网站首页>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分类信息。
边栏推荐
- 复合非线性反馈控制(二)
- Kubernets first meeting
- FRP intranet penetration, reverse proxy
- MySQL installation and configuration
- 手动对list进行分页(参数list ,当前页,页面大小)
- How to implement lazy loading in El select (with search function)
- HMS v1.0 appointment. PHP editid parameter SQL injection vulnerability (cve-2022-25491)
- High performance parallel programming and optimization | lesson 02 homework at home
- C realize Snake games
- How to help others effectively
猜你喜欢
Halcon image calibration enables subsequent image processing to become the same as the template image
JS flattened array of number shape structure
Practical gadget instructions
Online shrimp music will be closed in January next year. Netizens call No
AWT介绍
JS execution mechanism
Reading notes of Clickhouse principle analysis and Application Practice (4)
Leetcode question brushing record | 206_ Reverse linked list
Component、Container容器常用API详解:Frame、Panel、ScrollPane
Arcpy 利用updatelayer函数改变图层的符号系统
随机推荐
One click filtering to select Baidu online disk files
[untitled]
Take you to quickly learn how to use qsort and simulate qsort
STC8H开发(十二): I2C驱动AT24C08,AT24C32系列EEPROM存储
Abap:ooalv realizes the function of adding, deleting, modifying and checking
C realize Snake games
剑指 Offer II 038. 每日温度
APScheduler如何设置任务不并发(即第一个任务执行完再执行下一个)?
Tsinghua University product: penalty gradient norm improves generalization of deep learning model
Steady! Huawei micro certification Huawei cloud computing service practice is stable!
The width of the picture in rich text used by wechat applet exceeds the problem
体验碎周报第 102 期(2022.7.4)
fastjson
How to choose the middle-aged crisis of the testing post? Stick to it or find another way out? See below
2022.7.3-----leetcode. five hundred and fifty-six
配置交叉编译工具链和环境变量
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
对List进行排序工具类,可以对字符串排序
如何判断数组中是否含有某个元素
Grounding relay dd-1/60