Li's Bioinfo-Blog
  • 主页
  • 分类
  • 标签
  • 归档
  • 关于
  • 搜索
Home » 分类

📖 R&Python&Shell --- 编程基础、可视化等

050快捷键

shell Ctrl + a : 将光标移到本行的开始处 Ctrl + e : 将光标移到本行的末尾处 Backsapce : 删除前一个字符 Ctrl + d : 删除后一个字符 Ctrl + k : 从光标开始剪切至行的末尾 Ctrl + y...

Create: 2022-04-26 | Update: 2022-04-26 | Words: 170 | 1 min | Lishensuo

正则表达式基础

在R、shell,Python等进行字符串处理时,常常使用正则表达式进行高效的文本编辑。下面小结一下关于正则表达式的基础用法 1、匹配字符(集...

Create: 2022-04-16 | Update: 2022-04-16 | Words: 551 | 2 min | Lishensuo

hugo+github搭建我的个人博客

博客网页:https://lishensuo.github.io/ github:https://github.com/lishensuo/l...

Create: 2023-01-29 | Update: 2023-01-29 | Words: 2509 | 6 min | Lishensuo

R基础配置

1、R镜像设置 (1)临时设置,重启R之后会重置 1 2 3 4 options(BioC_mirror="http://mirrors.tuna.tsinghua.edu.cn/bioconductor/") options("repos" = c(CRAN="https://mirrors.tuna.tsinghua.edu.cn/CRAN/")) options()$repos options()$BioC_mirror (2)通过设置.Rprofile文件永久设置 linux 1 2 3 4 5 6 7 #进入家目录 cd...

Create: 2022-04-16 | Update: 2022-04-16 | Words: 244 | 1 min | Lishensuo

R语言的多线程循环语句

在遇到R里的大量循环操作时,可以考虑多线程处理方式,提高分析速度。具体使用方法针对window与linux/mac平台有所区别。相关笔记如下...

Create: 2022-05-17 | Update: 2022-05-17 | Words: 508 | 2 min | Lishensuo

R-数据分析-dplyr表格操作

1 2 3 4 5 6 7 8 9 library(tidyverse) # -- Attaching packages ----------------------------------------------------- tidyverse 1.3.1 -- # √ ggplot2 3.3.5 √ purrr 0.3.4 # √ tibble 3.1.2 √ dplyr 1.0.7 # √ tidyr 1.1.3 √ stringr 1.4.0 # √ readr 2.0.0 √ forcats 0.5.1 # -- Conflicts -------------------------------------------------------- tidyverse_conflicts() -- # x dplyr::filter() masks stats::filter() # x dplyr::lag() masks stats::lag() 1、表格筛选 1.1 select...

Create: 2022-05-08 | Update: 2022-05-08 | Words: 2320 | 5 min | Lishensuo

R-数据分析-reshape2表格长短转换

1 2 library(tidyverse) library(reshape2) 1、matrix 1 2 3 4 5 6 7 8 9 10 11 12 set.seed(123) scores_mt = matrix(round(rnorm(40, mean = 80, sd=10)), nrow = 10, ncol = 4, dimnames = list(paste0("Stu",1:10), paste0("Subject-",LETTERS[1:4]))) class(scores_mt) # [1] "matrix" "array" head(scores_mt) # Subject-A Subject-B Subject-C Subject-D # Stu1 74 92 69 84 # Stu2 78 84 78 77 # Stu3 96 84 70...

Create: 2022-06-25 | Update: 2022-06-25 | Words: 580 | 2 min | Lishensuo

R-可视化-ggplot2绘图基础

ggplot2包一方面可以实现多种形式的数据可视化、比如箱图、柱状图等;另一方面也可以从多个角度进行美化、修饰。对于前者,之前对ggplot...

Create: 2022-07-03 | Update: 2022-07-03 | Words: 1267 | 3 min | Lishensuo

R-可视化-ggpubr包快速绘制点图、线图与柱状图

参考教程:http://www.sthda.com/english/articles/24-ggpubr-publication-ready...

Create: 2022-07-23 | Update: 2022-07-23 | Words: 964 | 2 min | Lishensuo

R-可视化-拼图patchwork

一、ggplot2组图 0、安装包及示例图 1 2 3 4 5 6 7 8 9 10 # #install.packages("devtools") # devtools::install_github("thomasp85/patchwork") library(ggplot2) library(patchwork) p1 <- ggplot(mtcars) + geom_point(aes(mpg, disp)) p2 <- ggplot(mtcars) + geom_boxplot(aes(gear, disp, group = gear)) p3 <- ggplot(mtcars) + geom_bar(aes(gear)) + facet_wrap(~cyl) p4 <- ggplot(mtcars) + geom_bar(aes(carb)) p5 <- ggplot(mtcars) + geom_violin(aes(cyl, mpg, group...

Create: 2022-09-04 | Update: 2022-09-04 | Words: 1139 | 3 min | Lishensuo
« Prev Page Next Page »
© 2025 Li's Bioinfo-Blog Powered by Hugo & PaperMod
您是本站第 位访问者,总浏览量为 次