Revision: 570
          http://rpy.svn.sourceforge.net/rpy/?rev=570&view=rev
Author:   lgautier
Date:     2008-07-04 06:59:57 -0700 (Fri, 04 Jul 2008)

Log Message:
-----------
moved file to the directory demos/

Added Paths:
-----------
    branches/rpy_nextgen/demos/example01.py

Removed Paths:
-------------
    branches/rpy_nextgen/test.py

Copied: branches/rpy_nextgen/demos/example01.py (from rev 569, 
branches/rpy_nextgen/test.py)
===================================================================
--- branches/rpy_nextgen/demos/example01.py                             (rev 0)
+++ branches/rpy_nextgen/demos/example01.py     2008-07-04 13:59:57 UTC (rev 
570)
@@ -0,0 +1,40 @@
+"""
+short demo.
+
+Running this through ipython ends in a memory map
+dump and a segfault.
+"""
+
+import rpy2.robjects as robjects
+import array
+
+r = robjects.r
+
+x = array.array('i', range(10))
+y = r.rnorm(10)
+
+r.X11()
+
+r.par(mfrow=array.array('i', [2,2]))
+r.plot(x, y, ylab="foo/bar", col="red")
+
+kwargs = {'ylab':"foo/bar", 'type':"b", 'col':"blue", 'log':"x"}
+r.plot(x, y, **kwargs)
+
+
+m = r.matrix(r.rnorm(100), ncol=5)
+pca = r.princomp(m)
+r.plot(pca, main="Eigen values")
+r.biplot(pca, main="biplot")
+
+
+if not r.require("GO")[0]:
+    raise(Exception("Bioconductor Package GO missing"))
+
+
+goItem = r.GOTERM["GO:0000001"]
+
+## goItem in an instance of an S4 class
+## slots can be accessed as Python attributes
+goItem.Term
+

Deleted: branches/rpy_nextgen/test.py
===================================================================
--- branches/rpy_nextgen/test.py        2008-07-02 15:07:59 UTC (rev 569)
+++ branches/rpy_nextgen/test.py        2008-07-04 13:59:57 UTC (rev 570)
@@ -1,40 +0,0 @@
-"""
-short demo.
-
-Running this through ipython ends in a memory map
-dump and a segfault.
-"""
-
-import rpy2.robjects as robjects
-import array
-
-r = robjects.r
-
-x = array.array('i', range(10))
-y = r.rnorm(10)
-
-r.X11()
-
-r.par(mfrow=array.array('i', [2,2]))
-r.plot(x, y, ylab="foo/bar", col="red")
-
-kwargs = {'ylab':"foo/bar", 'type':"b", 'col':"blue", 'log':"x"}
-r.plot(x, y, **kwargs)
-
-
-m = r.matrix(r.rnorm(100), ncol=5)
-pca = r.princomp(m)
-r.plot(pca, main="Eigen values")
-r.biplot(pca, main="biplot")
-
-
-if not r.require("GO")[0]:
-    raise(Exception("Bioconductor Package GO missing"))
-
-
-goItem = r.GOTERM["GO:0000001"]
-
-## goItem in an instance of an S4 class
-## slots can be accessed as Python attributes
-goItem.Term
-


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to