I think that RPy is installed and working fine except I cannot get any plots
to appear.

For example, if I type:

>>> from rpy import *
>>> x = r.c(1,2,3,4)
>>> x
[1, 2, 3, 4]
>>> r.hist(x)
{'density': [0.49999990000002015, 0.25, 0.24999999999999989], 'equidist':
True, 'breaks': [1.0, 2.0, 3.0, 4.0], 'intensities': [0.49999990000002015,
0.25, 0.24999999999999989], 'counts': [2, 1, 1], 'xname': '1:4', 'mids':
[1.5, 2.5, 3.5]}
>>>

But no plot appears.

I think that this may have something to do with ghostscript because if I try
to run the example on this website:  http://www.willarson.com/blog/?p=30

I get the following error:
rpy.RPy_RException: Error in function (file, type = "png256", height = 6,
width = 6, res = 72,  :
  sorry, 'gs' cannot be found

And this website says that ghostscript is needed for rpy.  I have tried
installing ghostscript but still get the error.  I cannot find any
information about ghostscript on the rpy webpage.

I am running on mac os 10.4.11, python 2.4.4, R 2.6.2.

Any help would be greatly appreciated!  Sorry if this is an elementary
question.

Ben
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to