• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • YouClaw
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
萧飒
Do it right and do it now
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理

随笔分类 -  R

 
显著性添加字母以及ggtree
该文被密码保护。
posted @ 2023-12-29 15:44 萧飒 阅读(0) 评论(0) 推荐(0)
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) 阅读全文
posted @ 2023-11-29 17:54 萧飒 阅读(58) 评论(0) 推荐(0)
近红外建模5
该文被密码保护。
posted @ 2023-02-02 23:45 萧飒 阅读(0) 评论(0) 推荐(0)
R 异常值检测 #str_extract 将变量变为值,数据框使用rbind,分位数使用
该文被密码保护。
posted @ 2022-11-03 11:06 萧飒 阅读(0) 评论(0) 推荐(0)
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 阅读全文
posted @ 2022-11-01 10:33 萧飒 阅读(100) 评论(0) 推荐(0)
R语言报错
摘要:1.path[1]="C:/Users/???/Documents": Sys.setenv(R_USER="E:/R/") 参考链接https://blog.csdn.net/wangzhepaohui/article/details/122739461 关于R语言显示“Warning messa 阅读全文
posted @ 2022-10-14 11:27 萧飒 阅读(125) 评论(0) 推荐(0)
群体结构:admixture画图
该文被密码保护。
posted @ 2022-06-28 16:12 萧飒 阅读(0) 评论(0) 推荐(0)
群体进化:fst_pi_tajima计算和绘图
该文被密码保护。
posted @ 2022-06-28 13:39 萧飒 阅读(1) 评论(0) 推荐(0)
群体结构:kinship_PCA绘图
该文被密码保护。
posted @ 2022-06-28 10:17 萧飒 阅读(1) 评论(0) 推荐(0)
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 阅读全文
posted @ 2022-01-06 15:50 萧飒 阅读(153) 评论(0) 推荐(0)
R语言画图-曼哈顿图-来源网络
摘要:#安装方法: # 设置安装源为清华大学TUNA镜像站点 options("repos" = c(CRAN="https://mirrors.tuna.tsinghua.edu.cn/CRAN/")) options(BioC_mirror="https://mirrors.tuna.tsinghua 阅读全文
posted @ 2022-01-04 16:24 萧飒 阅读(447) 评论(0) 推荐(0)
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 阅读全文
posted @ 2021-11-23 23:20 萧飒 阅读(82) 评论(0) 推荐(0)
单倍型比较+地图分布
该文被密码保护。
posted @ 2021-10-15 17:40 萧飒 阅读(1) 评论(0) 推荐(0)
R map 饼图数据处理
该文被密码保护。
posted @ 2021-10-11 17:28 萧飒 阅读(0) 评论(0) 推荐(0)
相关性分析作图(热图+数值)/(直方图+数值)R语言
摘要:library('corrplot') library(xts) library(zoo) library(PerformanceAnalytics) setwd("F:/BaiduNetdiskWorkspace/") #读取数据 a<-readxl::read_xlsx("phe.xlsx",s 阅读全文
posted @ 2021-09-02 11:13 萧飒 阅读(1612) 评论(0) 推荐(0)
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 阅读全文
posted @ 2021-08-30 17:07 萧飒 阅读(554) 评论(0) 推荐(0)
ggplot2+ggsignif绘制箱图及添加显著性
摘要:library(ggplot2)#加载ggplot2包 library(ggsignif)#加载显著性包 setwd('d:')#设置工作路径 read.table('ahga.txt',header = TRUE,sep = '\t',stringsAsFactors = T)#读取文件,保持标题 阅读全文
posted @ 2020-06-13 19:32 萧飒 阅读(3592) 评论(0) 推荐(0)
 

公告


博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3