美文网首页
2019-01-07 Coding

2019-01-07 Coding

作者: 清晨起床满满正能量_Go | 来源:发表于2019-01-07 20:24 被阅读0次

从后向前截取字符串

x <- "some text in a string"
substrRight <- function(x, n){
substr(x, nchar(x)-n+1, nchar(x))
}

substrRight(x, 6)
[1] "string"

substrRight(x, 8)
[1] "a string"

四个集合韦恩图

venn.diagram(x= list(A = A,D = D,B = B,C = C), filename = "My3.png", height = 450, width = 450,resolution =300, imagetype="png", col ="transparent", fill =c("cornflowerblue","green","yellow","darkorchid1"),alpha = 0.5, label.col = c("orange", "white","darkorchid4", "white", "white", "white", "white", "white","darkblue", "white", "white", "white","white", "darkgreen", "white"), cex = 0.45,fontfamily = "serif", fontface = "bold",cat.col =c("darkblue", "darkgreen", "orange","darkorchid4"), cat.cex = 0.45,cat.pos = 0, cat.dist = 0.07,cat.fontfamily = "serif", rotation.degree = 270)

R输出txt文件

write.table(cull,"luad_se.txt",sep="\t",quote=F,row.names = FALSE, col.names = FALSE)

相关文章

网友评论

      本文标题:2019-01-07 Coding

      本文链接:https://www.haomeiwen.com/subject/pnuprqtx.html