similar to: Can I set default parameters for the default graphics device?

Displaying 20 results from an estimated 10000 matches similar to: "Can I set default parameters for the default graphics device?"

2006 Mar 14
2
name of the graphics output
Hello. In the file list.txt, I have the name of n files in data frame format. I want to make an image for each 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)
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
2006 Sep 07
6
Template "specialisation"
I want to use a sitewide default template and use a specific version in some controllers to have a good DRY approach to my layout. Those controllers should add a little bit more HTML before rendering the results of the actions, in order to avoid copying the entire sitelayout every time. How can I do that? Currently my code is like this: class WelcomeController < ApplicationController
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
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
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 to the same shared
2006 May 22
2
[vpim] Some small rrule.rb changes
Quoting cosmin at speakeasy.net, on Sat, May 20, 2006 at 11:40:06AM -0700: > I did some changes to the rrule.rb. I needed some getters/setters for > each of the attributes from RRULE. Attached is the diff. If it makes > sense to you to be included in the lib, please do so. If you think > it''s worth to be included, I can add more validation to the setters. I
2005 May 16
1
get plot in a window when running R in the shell
Dear useRs, On a GNU/Linux box I want to run some code from the command line. This works #!/bin/sh R --vanilla -q --gui=X11 < code.r however I want the plots to appear in a window (as it happens when the code is run interactively) instead of being saved in 'Rplots.ps'. Is that doable? Thank you, b.
2011 Feb 13
1
CRAN package sizes
Robin Hankin's post reminded me to post about the following recent addition to 'Writing R Extensions', in the section on 'Submitting a package to CRAN' Ensure that the package sources are not unnecessarily large. ... As a general rule, doc directories should not exceed 5Mb, and where data directories need to be 10Mb or more, consideration should be given to a
2007 Jul 31
2
Q: obtaining non-transparent background in png
I am not understanding something about generating PNG plots. I have tried several ways to obtain something other than a transparent background, but nothing I've done seems to change the background. For example: dev.print(png, width=800, height=600, bg='red', filename='example.png') which I thought would give a red background, simply gives the same transparent background I
2010 Jun 09
2
"Graphics history" in UNIX
Hello. First post, please excuse lack of experience. I recently switched from MS-Win to Kubuntu and find it rather difficult to recover Cran-R ease of use. The "Graphics history" facility available under Windows was, for me, extremely useful. From Murrell's 2005 book (see citation below) I understand that no such facility is available under non-Windows systems. In R-help
2010 Aug 25
1
several odfWeave questions
[Sending both to the maintainer and to R-help, in case anyone else has answers ...] I've looked in odfWeave documentation, vignette, and poked around on the web some, and haven't found answers yet. 1a. am I right in believing that odfWeave does not respect the 'keep.source' option? Am I missing something obvious? 1b. is there a way to set global options analogous to
2006 Apr 24
1
trellis.par.get without opening a device?
I am using the Deepayan's Sweave trick to set graphics parameters for all graphs: ltheme = canonical.theme(color=TRUE) sup = trellis.par.get("superpose.line") ltheme$superpose.line$col = c('black',"red","blue","#e31111","green", "gray") .... Works perfectly, there is only a minor nuissance that trellis.par.get opens a device
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
2010 May 31
1
Can not save plot to png file correctly
You can save as png like this too: library(ggplot2) data=data.frame( ? X=sample(10,1000,replace=T) ? , Y=letters[1:10]) png("mypng.png") qplot(X, data=data, geom='histogram') + facet_wrap( ~ Y) dev.off() ? Felipe D. Carrillo Supervisory Fishery Biologist Department of the Interior US Fish & Wildlife Service California, USA ----- Original Message ---- > From: Peng Yu
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
2010 Oct 02
2
tyring to save plots using windoze 7 and cygwin
Hi, I'd been using R in the past and recently installed it on a new windoze 7 machine. There have been many issues with compatibility and 32/64 bit apps etc and I did find on google on isolated complaint that saveplot failed in scripts a 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
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 Nov 16
1
postscript error
I have generated a graph on the X11 device, but when I > dev.copy(postscript) postscript 3 > dev.off() X11 2 > the Rplots.ps file is generated but contains a prologue only. Can anyone suggest what I am doing wrong? Just to anticipate the upgrade reply ... > version _ platform i686-pc-linux-gnu arch i686 os linux-gnu
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