Hi, I am trying to put some graphics I have generated from R on a webpage using dev2bitmap to create a bitmap, .BMP, file. When I look at my notes from 2 or 3 months ago I was successfully able to put the ACTIVE device plot result into a bitmap file using a command such as: dev2bitmap("InsectSpray.BMP") Job done! Now when I try the same command, I get the following:> boxplot(InsectData) > dev2bitmap("InsectSpray.BMP")Error in device(...) : Object "width" not found I looked-up what R means by 'device' and constructed this command:> X11(display = "", width = 7, height = 7, pointsize = 12, gamma = 1,colortype = getOption("X11colortype"), maxcubesize = 256) with no resistance, but no change in the result. I looked up files containing x11 or X11 on my systen and found: /usr/local/R_HOME/R-1.1.0/src/unix/X11 /usr/local/R_HOME/R-1.1.0/src/unix/X11/devX11.c /usr/local/R_HOME/R-1.1.0/src/unix/X11/devX11.d /usr/local/R_HOME/R-1.1.0/src/unix/X11/devX11.o /usr/local/R_HOME/R-1.1.0/bin/R_X11.so /usr/local/R_HOME/R-1.1.0/src/library/base/R/unix/x11.R /usr/local/R_HOME/R-1.1.0/src/library/base/R/windows/x11.R /usr/local/R_HOME/R-1.1.0/src/library/base/man/unix/x11.Rd /usr/local/R_HOME/R-1.1.0/library/base/help/x11 /usr/local/R_HOME/R-1.1.0/library/base/html/x11.html /usr/local/R_HOME/R-1.1.0/library/base/latex/x11.tex any idea on what is happening to my device and Object? steve -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Vadim, According to: http://www.ci.tuwien.ac.at/R/bin/windows/windows-9x/base/CHANGES0 it states ... "For changes since the release of R 1.0.0 on 29 Feb 2000 see the file CHANGES" "Support for GIF format bitmaps has been removed, but support for PNG,JPEG and BMP has been added. This can be done via the File menu on the graphics window, savePlot() or dev.print to the new devices png(), bmp() and jpeg(), which can also be used directly." not on UNIX. and http://www.azertech.com/ttm/bcb/faq-misc-graphic-formats.htm states: Portable Network Graphics Format (PNG) "The PNG format is probably going to become the most widely used format of the future. It incorporates all the latest image technologies and is free of licensing restrictions." This is the format I will try to get to work in R unless there are any reasonable objections from the audience. steve On Tue, 18 Jul 2000, Vadim Kutsyy wrote:> On a side note.> If you are putting image on the web, I think gif, or gpeg would be much > better alternative.> They are much smaller. > > -------------------------------------------------------- > Vadim Kutsyy > http://www.kutsyy.com vadim at kutsyy.com > The University of Michigan - Ann Arbor Ph.D. Student > > > -----Original Message----- > > From: owner-r-help at stat.math.ethz.ch > > [mailto:owner-r-help at stat.math.ethz.ch]On Behalf Of Steve Arthur > > Sent: Tuesday, July 18, 2000 3:52 PM > > To: r-help-digest at stat.math.ethz.ch > > Subject: [R] X11 & dev2bitmap > > > > > > Hi, > > > > I am trying to put some graphics I have generated from R on a > > webpage using dev2bitmap to create a bitmap, .BMP, file. > > > > When I look at my notes from 2 or 3 months ago I was successfully able to > > put the ACTIVE device plot result into a bitmap file using a command such > > as: > > > > dev2bitmap("InsectSpray.BMP") > > > > Job done! > > > > Now when I try the same command, I get the following: > > > > > boxplot(InsectData) > > > dev2bitmap("InsectSpray.BMP") > > Error in device(...) : Object "width" not found > > > > I looked-up what R means by 'device' and constructed this command: > > > > > X11(display = "", width = 7, height = 7, pointsize = 12, gamma = 1, > > colortype = getOption("X11colortype"), maxcubesize = 256) > > > > with no resistance, but no change in the result. > > > > I looked up files containing x11 or X11 on my systen and found: > > > > /usr/local/R_HOME/R-1.1.0/src/unix/X11 > > /usr/local/R_HOME/R-1.1.0/src/unix/X11/devX11.c > > /usr/local/R_HOME/R-1.1.0/src/unix/X11/devX11.d > > /usr/local/R_HOME/R-1.1.0/src/unix/X11/devX11.o > > /usr/local/R_HOME/R-1.1.0/bin/R_X11.so > > /usr/local/R_HOME/R-1.1.0/src/library/base/R/unix/x11.R > > /usr/local/R_HOME/R-1.1.0/src/library/base/R/windows/x11.R > > /usr/local/R_HOME/R-1.1.0/src/library/base/man/unix/x11.Rd > > /usr/local/R_HOME/R-1.1.0/library/base/help/x11 > > /usr/local/R_HOME/R-1.1.0/library/base/html/x11.html > > /usr/local/R_HOME/R-1.1.0/library/base/latex/x11.tex > > > > any idea on what is happening to my device and Object? > > > > steve > > > > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. > > -.-.-.-.-.-.- > > r-help mailing list -- Read > > http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html > > Send "info", "help", or "[un]subscribe" > > (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch > > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._. > > _._._._._._._ > > > __________________________________________________ > Do You Yahoo!? > Talk to your friends online with Yahoo! Messenger. > http://im.yahoo.com >-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Tue, 18 Jul 2000, Steve Arthur wrote:> Hi, > > I am trying to put some graphics I have generated from R on a > webpage using dev2bitmap to create a bitmap, .BMP, file. > > When I look at my notes from 2 or 3 months ago I was successfully able to > put the ACTIVE device plot result into a bitmap file using a command such > as: > > dev2bitmap("InsectSpray.BMP") > > Job done! > > Now when I try the same command, I get the following: > > > boxplot(InsectData) > > dev2bitmap("InsectSpray.BMP") > Error in device(...) : Object "width" not foundThis is a side-effect of a change to dev.print, and has already been fixed in the patched version. However, you are now encouraged to use the bitmap device directly, in your case bitmap(file="InsectSpray.BMP") boxplot(InsectData) dev.off() -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Tue, 18 Jul 2000, Steve Arthur wrote:> Vadim, > > According to: > > http://www.ci.tuwien.ac.at/R/bin/windows/windows-9x/base/CHANGES0 > > it states ... > > "For changes since the release of R 1.0.0 on 29 Feb 2000 see the file > CHANGES" > > "Support for GIF format bitmaps has been removed, but support for PNG,JPEG > and BMP has been added. This can be done via the File menu on the graphics > window, savePlot() or dev.print to the new devices png(), bmp() and > jpeg(), which can also be used directly." > > not on UNIX.But there are png() and jpeg() (and bitmap()) devices now on UNIX. The reason there is not a bmp() device on UNIX is that we did not anticipate any demand for a Windows format there. There are lots of tools on Unix to convert these bitmap formats from one to another, so we have no intention of providing a comprehensive set. There are fewer such tools on Windows, and they have more restrictions, so we tried a little harder there. -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Rers, I have a question concerning the coplot function. I have written some code using the coplot: function (Block, Name, ID, Loci.Number, Code.Flag, Base, Metric) { coplot(Metric ~ as.integer(Base) | Loci.Number * Code.Flag) } And it works great! However, according to the way coplot functions, I have to convert Base values, A, C, G, and T to 1, 2, 3, and 4, which is not good for visualization. Question: Is there anyway to have the coplot work showing the original A, C, G, T as values for Base. Thanks in advance, steve -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Rers, Hi, I just ran a one-way ANOVA using R and compared the output to a one-way ANOVA I created using SAS on the same data set. Here are the results: R DF Sum Sq Mean Sq F value Pr(>F) Base 3 27.7449 9.2483 107.99 < 2.2e-16 *** Residuals 32 2.7449 0.0856 SAS Sum Of Source DF Squares Mean Square F Value Pr > F Model 3 27.69085439 9.23028480 107.55 <.0001 Error 32 2.74643538 0.08582611 In a "philosophical" sense, are the rounding differences worth worrying about (they may not be significant in this case, but sometimes the differences are in the second digit), or is this an example of "use at your own risk"? Thanks, steve -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._