![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
R
TIME_@
Personal notebook
展开
-
R语言字符串拼接 变量输出
变量中 字符串拼接转载 2022-06-16 17:11:41 · 1015 阅读 · 0 评论 -
R - history
改变x坐标方向+theme(axis.text.x = element_text(angle = 45, hjust = 0.5, vjust = 0.5))原创 2021-12-19 15:34:29 · 170 阅读 · 0 评论 -
pheatmap 参数整理
12原创 2021-09-20 10:17:01 · 23241 阅读 · 0 评论 -
相关性分析之 R包corrplot
文档1文档2corrplot(corr, #相关性系数矩阵 method = c("circle", "square", "ellipse", "number", "shade", "color", "pie"), #可视化的方法,可以是圆形、方形、椭圆形、数值、阴影、颜色或饼图形 type = c("full", "lower", "upper"), #指定展示的方式,可以是完全的、下三角或上三角 add = FALSE, col = NULL, #指定原创 2021-07-28 22:53:43 · 1433 阅读 · 0 评论 -
R-error: 错误: nul character not allowed (line 1)
路径中加转义字符Validate a character as a file path?确定字符是否为有效文件路径的最佳方法是什么? 因此CheckFilePath(“my*file.csv”)将返回FALSE(在Windows *上是无效字符),而CheckFilePath(“c:\users\blabla\desktop\myfile.csv” )将返回TRUE。...原创 2021-07-19 11:04:52 · 2041 阅读 · 0 评论 -
Rtools安装,Bioconductor安装,devtools安装,R包本地安装,Rstudio更换镜像
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:已经安装了Rtools,报错。发现R与Rtools要匹配。原创 2021-07-16 17:52:56 · 2355 阅读 · 0 评论 -
R语言PCA分析
princomp,prcomp及rdaR中输入数据类型有两类,R mode和Q mode。一般来说数据每一列为一个变量(variable),每一行为一个数据(observation)。其中R mode的数据行数大于列数,是基于变量的分析;Q mode数据列数大于行数,是基于数据的分析。Princomp和prcomp都是R自带的stats包中的函数。Princomp只能用于R mode,它基于协方差(covariance) 或者相关矩阵(correlation) 提取的特征(eigen)并进行特征值分解原创 2021-07-06 00:00:31 · 12531 阅读 · 5 评论 -
conda (picard)
基础channel配置conda config --add channels conda-forgeconda config --add channels defaultsconda config --add channels rconda config --add channels bioconda报错:PackagesNotFoundError: The following packages are not availablefrom current channels:r=4.0.0原创 2021-05-18 17:28:08 · 1224 阅读 · 0 评论 -
R产生随机数
runif()函数:随机生成均匀分布的小数runif(n, min = 0, max = 1)n表示随机生成小数的个数。min = 0,max = 1,表示小数的范围在0-1之间。原创 2020-12-31 20:47:06 · 996 阅读 · 0 评论