GWAS + 选择进化 代码
摘要:library(tidyverse) fst = choose.files() fst1 = read.table(fst, header = T) head(fst1) fst2 = fst1 %>% select(1,2,3,6) %>% top_frac(0.05,wt = MEAN_FST)
阅读全文
R-ggplot 引用变量及批量作图+相关性
摘要:for (i in seq(5,62,2)) { value1 <- names(phe)[i] value2 <- names(phe)[i+1] phe %>% ggplot(aes(!!sym(value1),!!sym(value2)))+geom_point()+theme_bw()+st
阅读全文
R语言报错
摘要:1.path[1]="C:/Users/???/Documents": Sys.setenv(R_USER="E:/R/") 参考链接https://blog.csdn.net/wangzhepaohui/article/details/122739461 关于R语言显示“Warning messa
阅读全文
GO富集图
摘要:library(readxl) library('ggplot2') #pathway=read_xlsx('BSR_down.xlsx') pathway=read_xlsx('BSR-down.xlsx') dir() Class<-pathway$GO p = ggplot(pathway,a
阅读全文
R语言画图-曼哈顿图-来源网络
摘要:#安装方法: # 设置安装源为清华大学TUNA镜像站点 options("repos" = c(CRAN="https://mirrors.tuna.tsinghua.edu.cn/CRAN/")) options(BioC_mirror="https://mirrors.tuna.tsinghua
阅读全文
batch gene expression plot
摘要:library(tidyverse) library(ggpubr) #load data data = readxl::read_xlsx("gene_id.xlsx",sheet = 2) data1 = pivot_longer(data,cols = c(2,3,4,5,6,7),names
阅读全文
相关性分析作图(热图+数值)/(直方图+数值)R语言
摘要:library('corrplot') library(xts) library(zoo) library(PerformanceAnalytics) setwd("F:/BaiduNetdiskWorkspace/") #读取数据 a<-readxl::read_xlsx("phe.xlsx",s
阅读全文
R语言数据处理60题
摘要:#author lee #date 2021.8.26 library(tidyverse) #1创建数据 df <- data.frame( "grammer" = c("Python","C","Java","GO",NA,"SQL","PHP","Python"), "score" = c(1
阅读全文
ggplot2+ggsignif绘制箱图及添加显著性
摘要:library(ggplot2)#加载ggplot2包 library(ggsignif)#加载显著性包 setwd('d:')#设置工作路径 read.table('ahga.txt',header = TRUE,sep = '\t',stringsAsFactors = T)#读取文件,保持标题
阅读全文