[Tutor] drawing a graph
tpc at csua.berkeley.edu
tpc at csua.berkeley.edu
Mon Sep 6 09:42:56 CEST 2004
hi Danny, I tried using rpy to test graphing with Python, but I believe
the documentation may be outdated and incomplete. I installed the win32
extensions and rpy-0.3.5.win32-py2.3.exe, and fired up IDLE to test
generating a simple line and point graph using the examples from the
page:
http://www.togaware.com/linux/survivor/Graphs.shtml
Right off the bat, the documentation fails to explain you must 'import
rpy' before you can 'from rpy import *', else you get:
error: (2, 'RegOpenKeyEx', 'The system cannot find the file specified.')
So then I created the list, and when I try to execute the next line I get:
>>> r.postscript("rplot01.eps")
...
NameError: name 'r' is not defined
The site:
http://rpy.sourceforge.net/
says to make sure the R bin directory 'C:\Program Files\R\rw1061\bin\' is
in your path, but that directory or another permutation doesn't seem to
exist on my machine.
I am looking for a simple line graph program and I tried Rpy at your
recommendation but I can't seem to get beyond the error message above.
On Thu, 2 Sep 2004, Danny Yoo wrote:
> Hi Vuzzi,
>
> Can you give us a small example of what you'd like a graph to look like,
> for, say three small sequences? That may help us to point you toward the
> right graph-generating tools.
>
>
> There are graph tools from the 'graphviz' project:
>
> http://www.research.att.com/sw/tools/graphviz/
>
> but I'm not sure if you mean this kind of graph. *grin* "Graph" is
> another one of those overloaded words.
>
>
> You might mean bar charts or line graphs instead. Perhaps you might be
> able to use HTMLGen to generate nice HTML bar charts:
>
> http://www.linuxjournal.com/article.php?sid=2986
>
> But it sounds like you might want something more. There's a Python
> extension module the R statistics system, and since R has robust graphing,
> you can take advantage of it:
>
> http://rpy.sourceforge.net/
> http://www.togaware.com/linux/survivor/Graphs.shtml
>
> Does this help?
>
>
> Good luck to you!
>
More information about the Tutor
mailing list