文件‘CF17.kmer’部分内容
1 | 5443123368 |
2 | 528695169 |
3 | 160011153 |
4 | 77087020 |
5 | 46315861 |
6 | 32563636 |
7 | 25100922 |
8 | 20807661 |
9 | 18321823 |
10 | 17008725 |
11 | 16532083 |
12 | 16679436 |
13 | 17324837 |
14 | 18363977 |
... | ... |
library(ggplot2) df1 <- read.table('CF17.kmer',header = FALSE,sep=' ') ggplot(df1,aes(V1,V2))+geom_line() +xlim(0,150)+ylim(0,1e+8) #调整坐标范围(会舍弃一些数据) +labs(x='Depth',y='Number',title='K-mer distribution') #源文件中无header,设置坐标轴及标题名称 +theme(plot.title = element_text(hjust = 0.5)) #将标题名称居中