Displaying 20 results from an estimated 10000 matches similar to: "Things I don't understand about the graphics interface"
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:
>
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",
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.
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/resolution) optimally for import into
CorelDraw for an
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
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
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
2007 Nov 19
2
Using windows() and jpeg()
Hello,
I have the following question, which I haven't been able to resolve after days of trying. I used to save my plots as jpegs using the savePlot command. However, that seems to result in lost resolution. So now I'm trying to use the jpeg( ) function, but am having trouble because it seems to be incompatible with the windows (width=, height=) command. It's important for me to
1999 Oct 04
1
bitmap copies of plots
Michael Lapsley was suggesting on R-help direct copies to gif/png/jpeg.
The following seems to do a sensible job for me of copying the current
device to any bitmap format supported by gs. The manipulation is needed
to work around assumptions made by postscript(), and I think better fixed
in postscript() (but not a couple of days before a release).
I want to make onefile=FALSE work on
2009 May 14
5
Graphical output format
Dear colleagues,
Saving a plot with pdf gives a very nice result:
pdf("myplot.pdf")
par(font=1,family='serif')
plot(pressure)
dev.off()
Doing the very same with other formats (png, jpeg, tiff) gives far
worse results. Is there anything to do to make a plot in some other
format than pdf look like the pdf? Hardly any journal accepts pdf
files for figures, and most do accept png
2009 Aug 01
3
Transparency and trellis device
Dear R-users,
I am trying to produce trellis (png, or jpeg) graphs with transparent background, but I cannot manage to make that happen. I tried to play around with themes but to no avail. Any advise on the following example will be greatly appreciated:
Thank you
Sebastien
####
library(lattice)
df <- data.frame(a=rep(1:4,4), b=rep(1:4,4), c=rep(1:4,each=4))
settings <- standard.theme()
2004 Nov 30
1
bitmap (blank image) plot rendering without X11
Hi,
I am trying to generate plots on our unix (no X) server to be included
in 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))
>
2003 Mar 06
6
Followup: copy-paste graphics from R to Word on Mac OS X
After trying numerous options, I'm just about at my wits end.
The most frequent suggestion was to export to a postscript or PDF file
and import that into Word.
However, no matter what I did or how I did it, the results were
extraordinarily ugly and somewhat time-consuming.
What I've tried so far:
1. Copy and paste from the R graphics output window into Word (in Mac
OS X), this is
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
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
2002 Oct 10
1
Exporting Charts or Graphs
Hello all, I am fairly new to R and hope not to be a bother. I have used the R-GUI a small amount under Microsoft Windows0S. I recall the ability to export created charts and graphs to JPEG or other various image formats. How can I do this in the UNIX CLI version? Thank you.
Also, I have receiveder the following error after installing a package via CRAN. How would I fix this? Thank you.
Jess
2000 Aug 03
1
PNG files and the png function
I can use a postscript device to produce a file which I can open with
the Gimp, then save quite a good png file.
If I try to use the png() function directly, I get something rather
like a graphics screen dump. The help file doesn't tell me whether it
should be like that or not.
_
platform i686-pc-linux-gnu
arch i686
os linux-gnu
system
2003 Aug 26
3
Exporting R graphs
Hi,
I have been a happy user of R for windows for more than a year, however,
recently, I started using linux as my operating system and now I have
practically switched completely. Of course, I still use R with linux,
however, certain nice features of R in windows seem to be missing or
hidden. I need help in basically two points:
1. In windows, I could copy the contents of a window graphic's
2003 Jun 12
1
Problems for runing R in BATCH to generate PNG/JPEG files
Hello all:
After I compile the R-1.7 with the follows in
Linux7.3:
configure --with-x --with-jpeglib --with-libpng
--x-includes=/usr/X11R6/include
--x-libraries=/usr/X11R6/lib
and make and make install. The R is able to generate
PNG/JPEG files from the command line. However, when I
put the same commands in a batch file and run:
R --gui BATCH R.Batch.file
It gave me a error in the
2005 Oct 03
2
grob questions
If I run the following example from:
http://www.stat.auckland.ac.nz/~paul/grid/doc/grobs.pdf
> grid.newpage()
> pushViewport(viewport(w = 0.5, h = 0.5))
> myplot <- gTree(name = "myplot", children = gList(rectGrob(name = "box",
+ gp = gpar(col = "grey")), xaxisGrob(name = "xaxis")))
> grid.draw(myplot)
>