> As well, I cannot save plot to file, as can be seen from this example: > > my_x = [5.05, 6.75, 3.21, 2.66] > my_y = [1.65, 26.5, -5.93, 7.96] > ls_fit = r.lsfit(my_x,my_y) > gradient = ls_fit['coefficients']['X'] > yintercept = ls_fit['coefficients']['Intercept'] > r.png("scatter_regression.png", width=400, height=350) > r.plot(x=my_x, y=my_y, xlab="x", ylab="y", xlim=(0,7), ylim=(-16,27), > main="Exmple Scttr w/regression") > r.abline(a=yintercept, b=gradient, col="red") > > The .png file is created but it is empty.
You need to also close the output device, using dev.off() in R. Try: r.dev_off() at the end of your script. Peter ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list