You also may want to try to use the PDF graphics device in R (function pdf) and then use convert (http://imagemagick.org) to make a PNG for viewing on the web. This is the method I have used with great success in my Django-dataplot package (http://django-dataplot.sf.net), which is a RPy plotting package for the Django web framework.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Barry Rowlingson Sent: Monday, June 16, 2008 6:02 AM To: RPy help, support and design discussion list Subject: Re: [Rpy] zero byte images Patrick Jackson wrote: > Hello all I need your help. I currently have a website that calls a python > script that uses rpy to create graphs. When I run the script from the > console it works great but when I run the script via the website it is only > creating a zero byte png file. > r.png(fileName, width = 480, height = 640) What version of R? In all but the most recent R, the png() function requires an X Window Server. When you run it interactively it uses the one in front of you, when run from Apache, it doesn't have one. Upgrade R to 2.7 and try again. Barry ------------------------------------------------------------------------- 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 ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ ------------------------------------------------------------------------- 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