[R] X11 & dev2bitmap

Prof Brian D Ripley ripley at stats.ox.ac.uk
Wed Jul 19 08:16:58 CEST 2000


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 found      

This 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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list