Displaying 20 results from an estimated 51 matches for "dev2bitmap".
2008 Jul 21
1
dev2bitmap error, 'gs' cannot be found
Dear List,
I am using the bioconductor package Category to do some gene enrichment
analysis, and usually save my KEGGmnplot's using a dev2bitmap command.
This has worked just fine, until suddenly earlier today I got this
error-message:
> dev2bitmap("04610_080721.jpg",type="jpeg", height = 10, width = 10,
res = 200)
Error in dev2bitmap("04610_CSF080721.jpg", type = "jpeg", height = 10, :
sorry,...
2008 Nov 03
1
dev2bitmap: extra missing
Hi,
I don't know if I am the first one to report the problem:
in 2.8.0 dev2bitmap gained aa support, but "extra" is null
if neither taa nor naa is specified.
> dev2bitmap("plot.pdf",type="pdfwrite")
Error in paste(shQuote(gsexe), " -dNOPAUSE -dBATCH -q -sDEVICE=", type, :
object "extra" not found
> dev2bitmap("plo...
2000 Jun 20
1
dev2bitmap() problem
Hi R users,
dev2bitmap() is not working for me in R-1.1.0. It says:
> dev2bitmap("aaa.png")
Error in device(...) : Object "width" not found
Anyone else has this problem?
Aleksey
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://ww...
2005 May 13
1
DEV2bitmap: jpeg with res=400 not enough for CORELDRAW poster A0
Dear all,
When saving a plot with the dev2bitmap command:
name <- c("test.jpeg")
dev2bitmap(name,type="jpeg",height=8,width=13,res=400)
Everything seems to be ok... After importing this picture in CORELDRAW (for
a poster A0) format the resolution and colors are not optimal.
How can I save pictures (colors/reso...
2000 Apr 28
1
dev2bitmap from a script invoked by another process
Issue:
I have a R script that is invoked periodically by another process. In the
script, a graphics is generated and I want to get a the image for the graph
as a jpeg.
Here is a prototypical version of the script (try.R):
plot(1)
dev2bitmap("try.jpg", type = "jpeg")
I am running R-1.0.0 on Solaris 7.
The script is invoked as: R --vanilla < try.R
A file named try.jpg is created but it contains a blank image, not the plot
created from the script.
Device inserted after plot(1) tells me that the current device is...
2006 Oct 18
0
dev2bitmap handling or else?
Hy all,
I wish to get rid of starting X to get graphics, i tryed dev2bitmap and
i've being working around without finding good parameters.
By example :
Dev2bitmap(file="Rplot001.png", type =
"png256",width=600/72,height=486/72)
par(mar=c(5,2,1,1),xaxs = "i", yaxs = "i",ps=13)
I tryed with res=something inside dev2bitmap...
2000 Jul 18
5
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:
>...
1999 Nov 29
1
cross reference wishlist item
It would be nice for checking documentation to be able to generate the
"see also" cross references (e.g. the list of functions where dev2bitmap
is linked as a "see also" reference.) Perhaps this already exists?
(BTW, it would be useful to have a "see also" reference to dev2bitmap in
the help for postscript and for Devices.)
Paul Gilbert
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r...
2008 Apr 29
2
Legend problem when exporting a plot to PDF
Hi list,
When exporting to PDF a graph with a legend, in the final PDF, the text
is going beyond the legend box.
> dev2bitmap("test.pdf", type="pdfwrite", h=6, w=6)
The legend looks OK on the screen.
I noticed that the size of the legend box depends on the size of the
screen window, which is not the case for other graphical parts (text of
the legend, title, axis text...)
Any tip on how to deal with t...
2008 Nov 14
1
Bug#505698: r-base-core: dev2bitmap fails with gsexe related error (PR#13288)
Stefano,
Thanks for the bug report.
On 14 November 2008 at 14:35, Stefano Costa wrote:
| Package: r-base-core
| Version: 2.8.0-1
| Severity: normal
|
| As in subject. The bug is reproducible on my machine with these
| commands:
|
| > x <- rnorm(100)
| > plot(density(x))
| > dev2bitmap("density.png")
| Error in paste(shQuote(gsexe), " -dNOPAUSE -dBATCH -q -sDEVICE=", type,
| :
| object "extra" not found
| >
Confirmed. The code in looks a little off inasmuch as in
if (!is.na(taa))
extra <- paste(" -dTextAlphaBits=...
2004 Aug 23
2
R on windows problem
Hi,
I've installed several versions of R on a number of Window
systems. I get the following error message (which I don't get on linux)
> dev2bitmap(file="test.jpeg",type="jpeg")
Error in system(paste(gsexe, "-help"), intern = TRUE, invisible = TRUE) :
gswin32c.exe not found
Any idea how to fix this? It seems common to all windows systems I've
tried. Is there a package I can install that will correct...
2004 Jul 04
1
Embarrassingly naive question regarding graphics on Mac OS X
I am having trouble saving graphs. Using the Aqua interface (which is not
my preferred interface), I have no problems plotting a graph, adding
additional lines, points, references, etc., and then saving it to a file
using, for example, the dev2bitmap command. I have found that, running R
with Xemacs+ESS under X11 (which I prefer over Aqua), this is not possible.
I can either send the graph to a Quartz or X11 window, where I can then
manipulate it using my mouse, but not save it (using dev2bitmap or
postscript or any other saving command create...
2007 May 22
5
Reducing the size of pdf graphics files produced with R
Hi,
Without trying to print 1000000 points (see <http://
finzi.psych.upenn.edu/R/Rhelp02a/archive/42105.html>), I often print
maps for which I do not want to loose too much of coastline detail,
and/or plots with 1000-5000 points (yes, some are on top of each
other, but using transparency (i.e. rgb colors with alpha
information) this actually comes through as useful information.
2004 Nov 30
1
bitmap (blank image) plot rendering without X11
...n our web-pages -> specifically pngs.
Without X, png() obviously doesn't work, so I have been trying to define
the graphics print device bitmap as described in the help:
> bitmap(file="plot.png", type = "png256", height = 6, width=6,res=72)
> pie(c(12,5))
> dev2bitmap(file="plot.png", type = "png256", height = 6, width =
6,res=72)
I end up with "plot.png" as a nonzero png file, but it is always
blank... I have gs 6.51 installed & R_GSCMD=/usr/bin/gs set.
generating Rplot.ps; pstoimg -antialias (or pstopnm) would also be an...
2000 Aug 17
1
Things I don't understand about the graphics interface
Using R-1.1.1 on RedHatLinux 6.2.
I've made some progress, succeeded in outputting bitmap, jpeg, and png
files. Yipee.
I did them with this command:
> dev2bitmap("whatever.bmp",res=300)
> dev.print(png, file="myplot.png", width=480, height=480)
> dev.print(jpeg, file="myplot.jpg", width=480, height=480)
> dev.print(pictex, file="myplot.tex", width=480, height=480)
Now here are the things I don't underst...
1999 Oct 04
1
bitmap copies of plots
...option of not centring on the page.
Oh, and I do know it is gswin32c on Windows: that is easy to incorporate
but I have not tested it.
One could attempt to retrieve height and width from the current device,
but I don't see that information is presently available from R code.
Any comments?
dev2bitmap <- function(file, type="png256", height=6, width=6, res=72,
pointsize, ...)
{
rc <- system("gs -help > /dev/null")
if(rc != 0) stop("Sorry, gs cannot be found")
gs <- system("gs -help", intern=TRUE)
st <- g...
2010 Oct 02
2
tyring to save plots using windoze 7 and cygwin
...long time ago.
R seems to work fine except script-based plot saving as pdf has not worked.
I have tried the following, none of which seem to function,
xyz <-read.table("time_frac2")
x=plot(xyz,main="imp rate", xlab="Time(GMT)",ylab="imp/minute")
grid()
dev2bitmap("xxx.pdf",type="pdfwrite")
save.plot(x,file="xxx.pdf",format="pdf")
dev.copy("pdf","auto_pdf.pdf")
dev.off()
savePlot("./auto_hit_rate.pdf",type="pdf")
q()
Now apparently R does save the plot in a default file Rplot...
2009 Jul 31
4
Getting file name from pdf device?
Hi
IU would like to modify the dev.off function, so that it automatically
compresses the created pdf.
I am thinking of doing the following in the modified dev.off:
1) Get the filename of the pdf device
2) close the device by calling the original dev.off()
3) compress the pdf file with a system call of pdftk.
My question: how can I get the filename of the pdf from the device
before it is closed?
2003 Feb 21
1
Copy-paste graphics from R to Word on Mac OS X
...eally like is R's ability to quickly
generate very good looking graphics. However, I've noticed that when I
attempt to copy and paste the graphs from the R graphics output window
into Word (in Mac OS X), the resulting picture is very jaggy.
I'm aware of the various options such as dev2bitmap, but I'd really
like to be able to do a quick copy and paste without switching among
various applications or creating extraneous files.
Thanks.
--
Eric Fruits, Ph.D.
Senior Economist & Project Manager
ECONorthwest - Portland
2006 Sep 12
0
Bitmap file size problems
...graphics windows height:width ratio is the
ypinch:xpinch ratio from the call to windows.
windows(10,1,xpinch=96,ypinch=192)
will produce a window which is higher than wide,
which is not what I expected after reading the docs.
(This also is true in R 2.4.0 alpha)
The alternative solution is to use dev2bitmap.
windows(3,2)
plot(1:10)
dev2bitmap(file="test.bmp",type="bmp256",width=3,height=2,res=100)
produces a bitmap of size 300x200 which is exactly what is to
be expected. In this bitmap, however, the leftmost
part of the image displayed in R's graphics window is cut off.
What...