There is a well known problem (http://ask.sagemath.org/question/192/ compiling-r-with-png-support) with plotting in R that apparently some people successfully eliminated by installing the libraries mentioned and recompiling. I didn’t succeed, so I'm trying a work around and stumbled over an other problem.
If I use this little script: def ndistribpts(x): return (x,r.dnorm(x,mean=100,sd=25)) v=map(ndistribpts,range(98,103)) v [(98, [1] 0.01590671), (99, [1] 0.01594493), (100, [1] 0.01595769), (101, [1] 0.01594493), (102, [1] 0.01590671)] However this cannot be plotted. A similar script: def cube(x): return (x,x*x*x) v=map(cube,range(98,103)) v [(98, 941192), (99, 970299), (100, 1000000), (101, 1030301), (102, 1061208)] That easily can be used by scatter_plot I suppose it has something to do with the “[1] ” in front of each R result. I have no idea how to eliminate that. The result cannot be treated as a string [3:] or as matrix .GetItem(1) Thank you for considering this. R. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org