search for: rplot

Displaying 20 results from an estimated 195 matches for "rplot".

Did you mean: plot
2006 May 17
1
Renaming Rplots.ps from BATCH scripts.
I often use R CMD BATCH to run my files (e.g. script.R), and get the output recorded in script.Rout -- this is great. On my setup (R.2.3.0 on linux), if any plots are created, they get stored in Rplots.ps. This can get confusing if I have several batch scripts in one directory. I've written a simple shell script to rename Rplots.ps to e.g. script.Rout.ps so that later I can easily identify which script created the original postscript file. Just thought I'd share it in case others were...
2009 Aug 11
1
Generating R plots via Ruby CGI
...system("R --slave < /Library/WebServer/Documents/gsa/test.R") 2. However, when I hit the submit button on the HTML page, I get the following error messages on my Apache 2 server log: [Tue Aug 11 01:22:41 2009] [error] [client ::1] Error in function (file = ifelse(onefile, "Rplots.pdf", "Rplot%03d.pdf"), : [Tue Aug 11 01:22:41 2009] [error] [client ::1] unable to start device pdf [Tue Aug 11 01:22:41 2009] [error] [client ::1] Calls: plot ... plot.default -> plot.new -> <Anonymous> -> .External [Tue Aug 11 01:22:41 2009] [error] [client...
2003 Aug 20
2
Plots default to Rplots.ps
Dear All, Hello I'm a newbie to the list. I recently installed R on a Redhat 9.0 system, when I come to plot anything it does not bring up a graphics window but rather stores it in a file "Rplots.ps". I tried x11() but that doesn't bring up a window either. I would greatly appreciate any advice. Simon Woodhead
2013 May 22
1
Rplot save problem after using "identify" with R version 3.0.0
Hello R experts, I am having an wired problem to save my RPlot after I use "identify" option. Points are identified properly, but when I try to save that image I get error as: " Error: first argument must be a string (of length 1) or native symbol reference" and the image without identified points are saved. I am having this problem after...
2011 May 04
6
tkrplot not working in R 2.13.0
The tkrplot package is not working in version 2.13.0 for windows. I contacted the maintainer who unfortunately does not have easy access to a windows computer and says that it is working on the other platforms. I traced the problem down to the line in the .First.lib function: .Tcl(paste("load", fi...
2010 Oct 22
1
Display list redraw incomplete when exporting plots
...Thank you for your time and help! Jonas Josefsson ____________________________________________________________________ Messages, warnings, or errors: Warning message: Display list redraw incomplete Messages, warnings, or errors: Warning message: In dev.copy(device = function (filename = "Rplot%03d.jpeg", width = 480, : `mgp[1:3]' are of differing sign Messages, warnings, or errors: Error in dev.copy(device = function (filename = "Rplot%03d.jpeg", width = 480, : could not open file '/home/jonas/Skrivbord/art/station.jpg' Calls: local ... dev.print ->...
2010 Aug 21
1
R-level expansion of Rplot%03d.png
...%> The resulting html file contains a thumbnail of the png file, with a link to the pdf file. I'm not happy with my default filename for the graphics. Is there a way to expand the default filename of R graphic devices? I would like to call it like this, makePlot = function(p, name="Rplot%03d", width=300) { real.name = expandName(name) # function needed here png(paste(name,".png",sep="")) print(p) dev.off() pdf(paste(name,".pdf",sep="")) print(p) dev.off() cat(noquote(paste('image:',real.name,'.png["',real.name,'...
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", type="type = "png256",...); 'plots'; dev.off()... works really fast. But o...
2003 Jul 07
1
Xvfb and R
Hi I have recently installed and implemented Xvfb (X virtual frame buffer) so that I can create jpegs using R over CGI (SUSE Linux 8.1 and Apache 1.3). I have noticed that in order to do this, a file (Rplots.ps) is created in my cgi-bin directory everytime a cgi script is run. This could cause problems though as I have a multi-user system where it is possible that two different users will run cgi scripts at the same time, and both will be writing/reading Rplots.ps at the same time - a conflict! I am...
2005 Mar 02
2
.ps and .pdf page size differences in FC vs. Debian
R version: 2.0.0 OS: Fedora Core 1 When I'm using Fedora Core 1, Rplots.ps (and subsequent Rplots.pdf created after using ps2pdf Rplots.ps) which are created from the command line execution of R are too large to fit on a US Letter sized page when printed. The same code will produce a US letter sized page when I'm on my Debian Sid box. Both boxes are connected...
2008 May 26
2
R 2.7.0: pdf() > pdf.options versus formals
Hi, I have a tiny question about the graphics change in R 2.7.0. If I write a script ? la: options(device="pdf") formals(pdf)[c("file","onefile","width","height")] <- list("~/Rplot %03d.pdf", FALSE, 8, 8) plot(3) plot(4) both plots will be written into ONE pdf file. (not two as expected) This worked fine under 2.6.x In R 2.7.0 I have to write: options(device="pdf") formals(pdf)[c("file","onefile","width","height")] &l...
2006 Mar 14
2
name of the graphics output
...h file and save the images in pdf format. To do this, I do the following: llista = scan(file="list.txt",what=list(nom="")) for (file.name in llista[[1]]){ aux=read.table(file=file.name) aux=as.matrix(aux) pdf() image(aux) system("mv Rplots.pdf file.name.pdf") dev.off() } All is OK except for the command system("mv Rplots.pdf file.name.pdf"). All the outputs names are file.name.pdf but I want to put a different name for each graphic. I have tried pdf(file="file.name.pdf") but it doesn't work. H...
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
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)
2002 Feb 12
0
Plotting with direction of axes reversed.
Over the years there have been inquiries to these lists as to how to produce plots with the direction(s) of axes reversed. In response to some of these inquiries, I have provided a function call ``rplot'' which automated the procedure for such axis reversal. Recently Herberto Ghezzo of McGill University pointed out to me that there was a bug in my code. I have now fixed this bug (and a couple of others which I discovered in the revision process). The revised code of rplot() is enclosed...
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 whic...
2010 Jul 16
2
Can I set default parameters for the default graphics device?
I'm completely new to R, and I'd like to do something like this: > x=c(1,2,3) > plot(x,x) At this point, R creates a file "Rplots.pdf", since the default device is PDF and the default filename is "Rplots.pdf". I know I can set the default device like this: > options(device="png") But is there a way to set the default device's default filename? Thanks! [[alternative HTML version delet...
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 = "c:/r/Rplot%03d.png", width = 1920, height = 1920, pointsize = 48, bg = "white", res = 2...
2011 Mar 04
0
removing files on windows as part of vignette building
...tarball, these databases are deleted, but when a Windows binary is being made on the Bioconductor build servers the file(s) are not removed (as far as I read the documentation/code they ought to be). If I try to remove them explicitly, by including a Makefile with a target clean: rm -rf Rplots.pdf my.db pmy.db (there are two databases), it fails with the error message rm: cannot remove `Rplots.pdf': Device or resource busy rm: cannot remove `my.db': Device or resource busy rm: cannot remove `pmy.db': Device or resource busy make: *** [all] Error 1 Error in tools::buildVig...