第五期任务-R-018-饼图和韦恩图

Bamboo 2017-08-21 09:56:17 阅读: 1128

作业1:

> x<-c(1,1,2,3,1,5)

> y<-c("a","b","c","d","e","f")

> pie(x,labels=y,col=rainbow(3),edges=1000,clockwise=T,angle=20,radius=0.9,density=NULL,border="black",main="pie chart")

5-1.png

作业2:

> library('plotrix')

> x<-c(10,20,30,40,50,60)

> y<-c("a","b","c","d","e","f")

> pie3D(x,labels=y,height=0.7,explode=0.1,main="pie 3D chart")

I22C5)%E6HN)~Y6Q_407GU.png

作业3:

> A=1:150

> B=c(100:200,300:400)

> C=c(50:60,80:90)

> Length_A<-length(A)

> Length_B<-length(B)

> Length_C<-length(C)

> Length_AB<-length(intersect(A,B))

> Length_BC<-length(intersect(B,C))

> Length_AC<-length(intersect(A,C))

> Length_ABC<-length(intersect(intersect(A,B),C))

> T<-venn.diagram(list(A=A,B=B,C=C),filename=NULL

+ ,lwd=1,lty=2,col=c('red','green','blue')

+ ,fill=c('red','green','blue')

+ ,cat.col=c('red','green','blue')

+ ,reverse=TRUE)

> grid.draw(T)

K9ROFO(Y3`ZIEVG`D(HAV.png

 

 

 
邀请讨论

附件

{{f.title}} 大小 {{f.file_size}} 下载 {{f.count_download}} 金币 {{f.count_gold}}
{{item.nick_name}} 受邀请回答 {{item.create_time}}
{{item.refer_comment.nick_name}} {{item.refer_comment.create_time}}

附件

{{f.title}} 大小 {{f.file_size}} 下载 {{f.count_download}} 金币 {{f.count_gold}}
切换到完整回复 发送回复
赞({{item.count_zan}}) 踩({{item.count_cai}}) 删除 回复 关闭
科研狗©2015-2024 科研好助手,京ICP备20005780号-1 建议意见

服务热线

178 0020 3020

微信服务号