Ok I have checked the version of R, and I am using 2.7. I was looking at my log files, and noticed that I get an error that looks like this:
[EMAIL PROTECTED] httpd]$ tail error_log In function (filename = "Rplot%03d.png", width = 480, height = 480, : unable to open connection to X11 display '' Traceback (most recent call last): File "./parameter_derivation.py", line 623, in ? a.makeStatRealChart(fileName) File "./parameter_derivation.py", line 540, in makeStatRealChart r.png(fileName, width = 480, height = 640) rpy.RPy_RException: Error in X11(paste("png::", filename, sep = ""), width, height, pointsize, :unable to start device PNG So it does look like it is the issue with Xwindows, but since I have R version 2.7, why am I getting this error? Thanks > 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 > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/rpy-list ------------------------------------------------------------------------- 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