similar to: R 2.7.0: pdf() > pdf.options versus formals

Displaying 20 results from an estimated 10000 matches similar to: "R 2.7.0: pdf() > pdf.options versus formals"

2005 Jul 23
1
"%03d" in the pdf command
The pdf man page contains the following text: pdf(file = ifelse(onefile, "Rplots.pdf", "Rplot%03d.pdf"), width = 6, height = 6, onefile = TRUE, family = "Helvetica", title = "R Graphics Output", fonts = NULL, version = "1.1", paper, encoding, bg, fg, pointsize) I am creating multi-page graphics in which each
2009 Aug 11
1
Generating R plots via Ruby CGI
Greetings, I'm trying to debug a simple two-line plot routine in R called test.R: cor(swiss) plot(swiss$Catholic, swiss$Examination) These commands work fine when typed into R. They also work fine when I invoke this routine by the following line into my terminal: R --slave < /Library/WebServer/Documents/gsa/test.R My ultimate goal is to send data to this R routine via a web
2000 Jun 16
1
postscript device on R-1.1.0
Am I the only one with this problem? > postscript() Error in old$command == "default" : comparison (1) is possible only for vector types The function postscript() is creates a list called "old". the function wants to access old$command, but old does not have a component called command. > postscript function (file = ifelse(onefile, "Rplots.ps",
2011 Nov 05
1
How to infer default width and height for a device?
Hi. GENERAL: Is there a general method for inferring default device settings, particularly 'width' and 'height', that works for all devices? AFAIK, the answer is no, but there might be functions out there that I don't know of. POSTSCRIPT SPECIFIC: If not, I'm considering implementing such a method myself. Is it possible for R to infer the default 'width' and
2000 Aug 10
1
Usage questions
Can I ask a couple of usage questions? (RedHat Linux 6.1, R-1.1) 1. This may just indicate I'm a dinosaur who can't leave SAS behind. I want to write programs and run them with source() to see what they do, then I would like to use the "up arrow" to go back through the commands that were in the file, fiddle them, see what they do, and so forth. Is there no way? SAS has a
2009 Aug 10
4
Saving plots to file
Appologies if this has been addressed before, but I can't seem to find it in the help archives. I'm looking to do something like the following but it looks like save.plot is deprecated. save.plot(plot(glm1$residuals,gain,main = "Hist of residuals and gain"),file="Desktop/hist1.png") Thanks in advance, Sean Session Info: R version 2.9.1 (2009-06-26)
2011 Oct 27
1
minimizing device-dependent code in graphics scripts
Here is a common scenario that I and probably others often face: - I write a script, test.R, to produce some graphs, viewing them on-screen and tinkering until they look right - I want to save image files (e.g., .png), so I wrap each plot in device driver calls, e.g., png(file='test01.png', width=600, height=600); plot(1:10) dev.off() png(file='test02.png', width=600,
2002 Nov 15
1
postscript()
Hi, I've been trying out postscript() when onefile is set to FALSE. However I'm having trouble understanding the documentation for postscript(). Suppose I want to do: plot(1:10) plot(1:10, type = "l") and store them in foo.ps and goo.ps. Furthermore, I'd like to do then with one postscript() command -- because this is just a simplified version of what I really need
2003 Sep 26
1
empty postscript output of figures
Hi, I have a puzzeling problem. I want to export graphics from R to TeX via postscript(). This works fine for some graphs, but for others, the eps remain empty when viewed with GSView. When such an empty eps is imported to TeX, the figure appears upside down and very small, irrespective of TeX width and height commands. If I transform the eps to pdf, the graphic shows up, but turned aqround 90°.
2003 Apr 22
4
Default value for title in postscript function
I like the fact that the postscript function enables the possbiility of a more useful title than before. However, I'd prefer the default to be the file name. It's very simple for me to make my own postscript function that does just that simply by setting title = file. I always use onefile = TRUE, so it always works (so far). However, I'm a little reluctant to do that in case some
2003 Apr 22
4
Default value for title in postscript function
I like the fact that the postscript function enables the possbiility of a more useful title than before. However, I'd prefer the default to be the file name. It's very simple for me to make my own postscript function that does just that simply by setting title = file. I always use onefile = TRUE, so it always works (so far). However, I'm a little reluctant to do that in case some
2012 Sep 23
1
Background color in a grid plot seems to interfere with plot()
Hi, Why does the upper left panel (in the plot below) not have a gray background? Cheers, Marius require(grid) require(gridBase) pdf(file="Rplot.pdf", width=8, height=8, onefile=FALSE) ## set up the grid layout gl <- grid.layout(5, 5, widths=unit(c(1.8, 8, 0.8, 8, 0.8), "cm"), heights=unit(c(0.8, 8, 0.8, 8, 1.5), "cm")) if(FALSE) grid.show.layout(gl)
2012 Nov 01
3
Duda gráfico DIN A-4
Hola, ¿Alguien me puede indicar cómo conseguir que un gráfico se adapte al formato DIN-A4, con su correspondiente verticalidad?. ¿Hay que hacerlo "manualmente" o existe algún parámetro/función que lo controle?. Gracias. Eva [[alternative HTML version deleted]]
2010 Oct 22
1
Display list redraw incomplete when exporting plots
I was just wondering if anyone knows what could be the problem with my exporting of plots. Below is the error messages I get when trying to export my plots (all error messages at the same time). I do get a file produced which works but I don't know why these messages appear. Doesn't matter if it is a pdf or a png or any other format I export to. Also, when exporting to png I get
2003 Sep 13
1
(no subject)
Dear all, for an interactive web application i need to produce a lot of graphics (up to 50) on demand. In the moment i'm using the png format. The png() ...using png(file="Rplot%03d.png", ...); 'plots' ; dev.off()... produces very good graphics. The problem is it takes too long to produce the png files. The bitmap() ...using bitmap(file="Rplot%03d.png",
2008 May 04
1
Change in the Tcl/Tk loading in R 2.7.0 (under Unix/Mac OS X)?
Hello, Up to R 2.6.2, I used to start Tcl *without Tk* (I need only Tcl for some part of my work, like a socket server written in Tcl only, for instance) with this code under Mac OS X (particularly on this system, because I don't want to start X11 just to use Tcl code, which is required for Tk!): > Sys.unsetenv("DISPLAY") > library(tcltk) I got then the message
2011 Jun 01
1
weird error from MASS::eqcsplot with postscript driver
[Env: R 2.12.2, Win XP] I'm creating figures using MASS::eqcsplot to provide equal scaling of the axes. My figures work OK when I plot to the screen, but when I try to do the same plot as a postscript file, I get an unexplicable error, > figframe() Error in if (yuin > xuin * ratio) yuin <- xuin * ratio else xuin <- yuin/ratio : missing value where TRUE/FALSE needed >
2008 Jun 04
1
An issue happens Embed R and redirt png file
I am a new R user and I have a question of embedding R to generate png On Debian, I installed R by source code. Now I want to embed R in an application which name is MyApp, and run the following syntax: png(filename="/tmp/Rplot%03d.png) example(rect) dev.off() Unfortunately I get the following error message: Error in X11(paste("png::", filename, sep = ""), width,
2008 Jun 04
1
An issue happens Embed R and redirt png file
I am a new R user and I have a question of embedding R to generate png On Debian, I installed R by source code. Now I want to embed R in an application which name is MyApp, and run the following syntax: png(filename="/tmp/Rplot%03d.png) example(rect) dev.off() Unfortunately I get the following error message: Error in X11(paste("png::", filename, sep = ""), width,
2005 Aug 15
1
png and resolution (PR#8066)
Full_Name: Knut krueger Version: 2.1.1 OS: xp Home Submission from: (NULL) (149.225.134.34) In the png function the value res seems to be inactive: bmp(filename = "c:/r/Rplot%03d.bmp", width = 1920, height = 1920, pointsize = 48, bg = "white", res = 2400) result: witdh/heigth = 1920 <> 20.32 mm ppi=2400 Results as expected png(filename =