Displaying 20 results from an estimated 261 matches for "onefile".
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("fi...
2001 Feb 22
1
onefile= arg to postscript() (PR#854)
Full_Name: Peter Perkins
Version: 1.2.1
OS: LinuxPPC
Submission from: (NULL) (24.4.89.36)
Unlike (at least some) other args/components of ps.options(), the onefile=
arg to postscript() does not default to ps.options()$onefile. For the family=
and landscape= args, for example, it does. Looking at postscript()'s code,
this
appears to be intentional. If it _is_ intentional, the following clarification
might be added to the "onefile" line of the...
2000 Jun 16
1
postscript device on R-1.1.0
...)
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", "Rplot%03d.ps"),
onefile = TRUE, ...)
{
new <- list(onefile = onefile, ...)
old <- check.options(new = new, name.opt = ".PostScript.Options",
reset = FALSE, assign.opt = FALSE)
if (old$command == "default")...
2003 Sep 10
6
insert eps into microsft word
it seems that word can not read encapsupalted postscripts generated by R
I used this command
postscript("output.eps",horizontal=F,onefile=TRUE)
since onefile=TRUE produces an encapsualted postscript
actually what I'm trying to do is to insert the postsript file into a
word document
since other formats like jpeg and bmp do not reproduce the same quality
like postscript
formats
any suggestions are very much appreciated
Karim
2012 Feb 06
1
Multi-page PDF using dev.copy2pdf(filename, onefile=TRUE)?
...plot per page. From the R docs and other sources I gather the basic way to do this is save plot 1 into a file then append the 2:n plots to the same file.
This code shows my basic approach, but for some reason only the last plot is saved into the pdf. I've tried different variations (e.g. using onefile only in the second call, or only in the first), to no avail. The comments show what I see if I step through the code one line at a time:
scratch<-function() {
graphics.off()
plot(1:7, 1:7) # Opens a graphics window and displays a 7-point plot in it, as expected
dev.copy2pdf(file="test.p...
2009 Jan 19
1
patch for textspecial and defaultfont in xfig
...tspecial
= FALSE)
{
## do initialization if needed
initPSandPDFfonts()
@@ -281,7 +281,7 @@
if(!checkIntFormat(file)) stop("invalid 'file'")
.External(XFig, file, paper, family, bg, fg,
width, height, horizontal, pointsize,
- onefile, pagecentre, encoding)
+ onefile, pagecentre, defaultfont, textspecial, encoding)
invisible()
}
Index: src/library/grDevices/src/devPS.c
===================================================================
--- src/library/grDevices/src/devPS.c (revision 47637)
+++ src/library/g...
2003 Jan 08
2
Problem with fontsize of pie-chart in postscript file
...lineItems <- c(6252,943605,271207,517764,44108)
orders <- c(2084,226894,49218,164056,15809)
value <- c(1380425,87743481,35212459,76346384,10403599)
count <- c(52,17571,261,53270,843)
col = gray(seq(0.2,.8,length=6))
oldpar <- par()
par(cex=2)
#postscript("c:/temp/1.eps", onefile = FALSE)
pie(lineItems, labels=labels, col=col, density=15, angle = 15 + 10 * 1:6)
#dev.off()
postscript("c:/temp/2.eps", onefile = FALSE)
pie(orders, labels=labels, col=col, density=15, angle = 15 + 10 * 1:6)
dev.off()
postscript("c:/temp/3.eps", onefile = FALSE)
pie(value, l...
2002 Dec 27
2
RSvgDevice & sapply(plotmeans)
Hi,
anybody know why this not works for several
plots ?
When i set onefile=T the plots are stacked one about another
, onefile=F only the first plot is shown in AllbusMeansPlots.svg.
[h2 is a data.frame]
......hist and sapply works for several plots nice with RSvgDevice !
Maybe setting the title after apply is a problem, but until yet i didn't
found a better solution...
2003 Oct 17
3
Strange behaviour
As an absolute beginner I'm reading and practicing with the Verzani doc to learn R.
Now, being an expert latex user who wants to integrate graphical capabilities if R and latex, using the "Simple" library and the simple.scatterplot examples I had a go at:
1) Including the resulting graph into a doc.snw then compiled through sweave & latex;
2) Produce the graph in pdf format
2005 Oct 28
1
multiple graphs in the same ps file ?
Dear all,
I would like to be able to store multiple graphs in one ps or pdf file, but
I cannot achieve this only if I don't shut the "postscript" device between
the graphs.
here is what I managed to do :
> postscript(file="test_graph.eps", onefile=TRUE)
> plot(1:10)
> plot(1:20)
>
> dev.off()
---------------------------------------------------------------------------
but when I try :
> postscript(file="test_graph.eps", onefile=TRUE)
> plot(1:10)
> dev.off
[execution of another part of the code and then:]
>...
2007 Dec 06
3
Defaults for postscript()
The defaults for postscript()
paper = "default"
onefile = TRUE
horizontal = TRUE
(it seems) date from the days when people used to used this to send plots
directly to a postscript printer via print.it=TRUE. I haven't done that
for years, and it seems that our current generation of students don't even
know the concept. It seems 'horizon...
2000 Feb 04
2
terminating plot
This script (in Version 0.90.1 [Solaris]):
postscript (file="test.eps",onefile=F)
par (mfrow=c(3,1))
plot (1:10,rep(1,10))
plot (1:10,rep(1,10))
plot (1:10,rep(1,10))
frame()
does not terminate the plot. Rather it gives the message:
Warning message:
multiple pages used in postscript() with onefile=FALSE
and the plot is only complete after quitting R.
Is t...
2005 Sep 21
2
controlling usage of digits & scientific notation in R plots; postscript margins
...; into
LaTeX documents, while some make figures that have huge,
inches-and-inches of margins around the outside. I'm not watching how
they make these figures all the time, but I think I'm figuring out the
cause of big margins.
Is this right: the margins issue relates to the use of the onefile=F
option in a dev.copy command? I think the figures turn out properly
with this:
dev.copy(postscript,file="myfig.eps",height=5,width=5,horizontal=F,onefile=F)
dev.off()
If you mistakenly omit the onefile=F option, the margins stretch out
from the center where the figure is placed to...
2011 Aug 27
2
Am having trouble calling a function
...lx = dim(mdf)[1]/2
....
}
And if I manually set
df = ads[[j]]
doAirport runs OK.
But when called from the main program, I always get
> sapply(ads, function(x) {doAirport(df, base)} )
Error in eval(expr, envir, enclos) : object 'lblx' not found
In addition: Warning message:
'mode(onefile)' differs between new and previous
==> NOT changing 'onefile'
> sapply(ads, function(x) {doAirport(x, base)} )
Error in eval(expr, envir, enclos) : object 'lblx' not found
In addition: Warning message:
'mode(onefile)' differs between new and previous
=...
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 gra...
2009 Aug 18
2
ENC: postscript, options
I'm not shure but I guess that you miss a " and putted it in the wrong
place!
Try this: postscript("/pathto/filename.eps",horizontal=FALSE,onefile=FALSE)
Hope It helps.
-----Mensagem original-----
De: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] Em
nome de e-letter
Enviada em: segunda-feira, 17 de agosto de 2009 10:11
Para: r-help at r-project.org
Assunto: [R] postscript, options
Readers,
I am not able to creat...
2012 Feb 09
1
Arial font in eps figures in R
...rying is following:
Arial <- Type1Font(family="Arial",
metrics=c("ArialMT.afm", "arial-BoldMT.afm", "Arial-ItalicMT.afm", "Arial-BoldItalicMT.afm"))
postscriptFonts(Arial=Arial)
postscript("testArial.eps", horizontal=F, onefile=F, width=4, height=4)
par(family="Arial")
plot(1:10, 1:10)
dev.off()
but getting the following error message:
Error in axis(side = side, at = at, labels = labels, ...) :
family 'Arial' not included in PostScript device
Alternatively I've also tried:
Arial <- Type1Fo...
2000 Aug 10
1
Usage questions
...R I don't get any command history with source(), so I
can't experiment with commands.
2. What does it mean when output from a command is just
NULL
It seems like everything is OK when this happens, but it does not always
happen.
3. When I tried
> postscript(file="test3.ps",onefile=FALSE)
And then I ran some models, it did not create several files. Where did
I go wrong? I'm reading the postscript help page and it seems like
there's something missing, or I'm illiterate, or both:
postscript(file = ifelse(onefile, "Rplots.ps", "Rplot...
2010 Jul 16
8
save plot
I made a plot, but after I made a second plot, the previous plot was
gone. How can I save all the plots in a file (I do not manually copy
and paste them one by one)?
Thanks.
Linda
2005 Jul 22
3
problems with submitting an eps-file created in R
...s
resolution: min. 1000 dpi
supported fonts: Arial, Courier, Helvetica, Symbol, Times, Charcoal,
Chicago, Geneva, Georgia, Monaco, Zapf, New York
Itried to ways of getting appropriate file:
1.Creating eps-file in R by drawing into a x11-device and then:
/dev.copy2eps(file = "file.eps", onefile = TRUE, paper = "a4", family =
"Helvetica", pointsize=1, print.it = FALSE, fonts = "Helvetica")
/2. Generating a postscript-file in R with /
//postscript(file = "file.ps", onefile = TRUE, paper = "a4", family =
"Helvetica", width = 6,...