摘要: Linux多数发行版自带的sort程序,非常强大,在此只说多字段排序 sort 有个参数-k,可以指定字段,有比较复杂的语法,不在文本范围内。 一下为一段数据(从基因中得到,仅仅作为demo),文件名为 data chr13 3008566 3008677 chr9 3024384 3024515 chr19 3157071 3157172 chr5 3236386 3236476 chr13 3041044 3041191 chr12 3045343 3045532 chr6 3087308 3087625 chr5 3109870 3110091 chr9 3115454 3115531 阅读全文
posted @ 2013-01-07 13:36 蒋蒋 阅读(1060) 评论(0) 推荐(0) 编辑
摘要: 例:d <- data.frame(name=c("zhao","qian","sun","li"),weight=c(62,58,79,60),height=c(178,169,180,173))x <- d$namey1 <- d$weighty2 <- d$height用包plotrix#png("2y_1.png")library(plotrix)xpos <- 1:4twoord.plot(xpos,y1,xpos,y2,xlim=c(0,5),lylim 阅读全文
posted @ 2013-01-07 10:51 蒋蒋 阅读(904) 评论(0) 推荐(0) 编辑
摘要: slices <- c(10, 12, 4, 16, 8)lbls <- c("US", "UK", "Australia", "Germany", "France")pct <- round(slices/sum(slices)*100)lbls <- paste(lbls, pct) # add percents to labelslbls <- paste(lbls,"%",sep="") # ad % to label 阅读全文
posted @ 2013-01-07 10:51 蒋蒋 阅读(1781) 评论(0) 推荐(0) 编辑