Venn Diagram图绘制及显示问题

> library (VennDiagram)

具体画法可通过help(VennDiagram)学习

例如:

##生成四个不同的组合

> A<- sample(LETTERS, 18, replace = FALSE)

> B<- sample(LETTERS, 20, replace = FALSE)

> C<- sample(LETTERS, 22, replace = FALSE)

> D<- sample(LETTERS, 19, replace = FALSE)

##使用venn.diagram功能绘图

> venn.diagram(x =list(A = A,D = D,B = B,C = C), filename = "My5.png", height = 450, width= 450, resolution =300, imagetype="png", lwd=0.6, fill =c("cornflowerblue","green","yellow","darkorchid1"),cex=0.45, cat.cex=0.45)

***图像显示问题

图像是自动保存在默认路径中的getwd()

设置存储路径setwd("D:/R")

永久更改工作目录

(0)

相关推荐