R画 维恩图

 

> install.packages('plotrix') 
Installing package(s) into ‘/home/shenzy/R/x86_64-pc-linux-gnu-library/2.15’
(as ‘lib’ is unspecified)
试开URL’http://cran.csiro.au/src/contrib/plotrix_3.4-5.tar.gz'
Content type 'application/x-gzip' length 211113 bytes (206 Kb)
打开了URL
==================================================
downloaded 206 Kb

* installing *source* package ‘plotrix’ ...
** 成功将‘plotrix’程序包解包并MD5和检查
** R
** data
** demo
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded

* DONE (plotrix)

The downloaded source packages are in
	‘/tmp/RtmpQVXKKd/downloaded_packages’

library(plotrix)
plot(0:10,seq(0,10,length=11),type=’n’,axes=F,xlab=”,ylab=”)
draw.circle(2,5,2,col=rgb(154/255,0/255,205/255,0.6))
draw.circle(4,5,2,col=rgb(21/255,3/255,252/255,0.6)) text(1,5,labels=’10.12%’,col=’white’,font=2) text(5,5,labels=’40.38%’,col=’white’,font=2)
text(3,5,labels=’49.5%’,col=’white’,font=2)
legend(6.2,5,pch=15, xjust=0,yjust=0.5,bty=’n’,cex=1.3,col=c(rgb(154/255,0/255,205/255),rgb(74/255,2/255,233/255),rgb(21/255,3/255,252/255) ), legend=c(‘sample 1 uniq’,’sample& sample 2′,’sample 2 uniq’))
text(3.5,7.5,labels=’Venn chart for uniq_sRNAs’,font=2,cex=1.5)

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>