Did you do that on a linux machine, or on OS X with X11 running? Because it seemed to me that the r.png device required X11.
On Jan 24, 1:38 pm, "William Stein" <[EMAIL PROTECTED]> wrote: > On Jan 24, 2008 9:24 AM, mhampton <[EMAIL PROTECTED]> wrote: > > > > > OK I think I have learned a little. The following code seems to flush > > the output properly, and sends it to the current cell. > > > r.postscript(os.curdir+'/out.ps') > > r.par(ann=0) > > values = [x for x in srange(0,float(pi),.1)] > > r.plot(values, [sin(x) for x in values], type='lines') > > r.dev_off() > > Cool. The following slight variant plots perfectly in any cell, etc., > and doesn't > display any funny cruft: > > from rpy import r > r.png(os.curdir+'/sage.png') > r.par(ann=0) > values = [x for x in srange(0,float(pi),.1)] > r.plot(values, [cos(x^2) for x in values], type='l') > _ = r.dev_off() > > Now somebody needs to start on the "nice usage of R from Sage" package for > Sage, which will have a plot wrapper, etc., etc., This would likely go in > *the* > already existing directory > > SAGE_ROOT/devel/sage/sage/stats/ > > In fact, it would be best if like with symbolic calculus we view this > as a general > package for doing statistics, which just happens to built almost entirely on > R. > But we could also provide hooks into some of the very formidable (or > not?) statistics > capabilities of SciPy. > > -- William --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---