Displaying 20 results from an estimated 10000 matches similar to: "Question from Newbie on PostScript and Multiple Plots"
2005 Jan 10
3
Mixing portrait/landscape in a postscript file
Dear list,
I'm stuck with a little graphical problem. I'm generating several
lattice plots which are printed in a single postcript device opened by
> trellis.device(postscript, theme=canonical.theme("postscript",
color=F), file="an_phase2_graph.ps", paper="a4", pointsize = 10,
onefile=TRUE, horizontal=TRUE)
Everything works fine,but some of these
2003 Mar 06
3
multiple plots and postscript()
Kia Ora everybody.
There must be an obvious answer to this, but I can't see it....
I want four square plots in one postscript file. The canonical answer
would be:
postscript(file="~/f.ps",width=5,height=5)
par(pty="s",mfrow=c(2,2))
plot(1:19,xlab="")
plot(1:19,xlab="")
plot(1:19,xlab="")
plot(1:19,xlab="")
dev.off()
But this
2009 May 21
1
postscript problems (landscape orientation)
I use the following function to export some figures to .eps:
p.eps <- function(p, fname, title = NULL, width, height)
{
postscript(file=fname, onefile=FALSE, paper="special",
width=width, height=height, horizontal=FALSE)
print(p + opts(title = title))
dev.off()
}
Whenever I have a page consisting of *only* figures exported in this way,
Acrobat Reader shows them in
2000 Dec 17
1
multiframe in postscript
I was hoping that the following specification
postscript(file="fig.ps",height=2,width=4)
par(mar=c(5,5,2,2)+.1,mfrow=c(1,2),mex=.6)
would yield the same scaling effect as
postscript(file="fig.ps",height=2,width=6)
par(mar=c(5,5,2,2)+.1,mfrow=c(1,3),mex=.6)
but the fact is that the 'mfrow=c(1,2)' yields smaller plotting frame
and bigger font size.
2005 Sep 20
2
why this postscript didn't work?
Hi, List,
I used the following codes to generate ps plots but foo.ps contains
nothing. Would someone please point out what is wrong with my codes?
Thanks a million!
postscript('foo.ps')
par(mfrow=c(2,1))
par(mfg=c(1,1))
hist(rnorm(100),col='blue')
par(mfrow=c(2,2))
par(mfg=c(2,1))
hist(rnorm(50),col='blue')
par(mfg=c(2,2))
hist(rnorm(60),col='blue')
dev.off()
2009 Feb 07
3
Output results to a single postscript document
Hello R users,
I have been trying to output all my results (text, plots, etc) into the same
postscript file as
one document, but have been unable to...Can anyone help me improve my code
below so that I can
accomplish this? Currently I have to output them separately then piece them
back together into
one document..
Thanks in Advance for any help!
options (scipen=999, digits=7)
2001 May 31
1
paper size in postscript driver
I have a non-PS printer setup to print under linux using ghostscript as a
filter. This printer has two paper trays, one has letter paper, the other
tabloid size paper. If I print from a program that uses a PPD file to
configure the printer, like StarOffice or The Gimp, I can select the paper
size from a nifty list. If I select letter size, the printer print with
paper from the letter tray. If
2007 Nov 29
1
Controlling Postscript output, size and orientation
I'm trying to get my graphics so that I can use them in LaTeX to create (via
) a pdf presentation.
I've tried controlling inner and outer margins and figure size using par(),
to no avail. The ps output keeps appearing as a portrait page with a
centered figure. Nothing I have been able to do so far has changed that.
Below is the code:
par( bg="yellow",
lab=c(10,5,7)
1998 Jun 06
1
R-beta: Problem with Multi-Figure Plots
I was trying to make some multi figure plots and I had some strange
problems. I'm using R 0.61.2. When I make this plot
>postscript(file="timeplot5.ps",horizontal=TRUE)
>par(mfrow=c(2,2))
>plot(dados$a1)
>plot(dados$a2)
>plot(dados$a3)
>plot(dados$a4)
The last panel is ploted without the box and it is always ploted in
landscape mode. Can anyone reproduce this
2004 Jun 02
1
use of split.screen() with postscript device
Greetings,
I am new to R and quite confused by the apparent inconsistency in it's
behavior. My latest difficulty lies in producing eps output for use with
latex. In particular, I was successful in obtaining a single figure by using:
postscript("ripple1.eps",onefile=FALSE)
plot(nu_set[[1]],ip[[1]])
lines(nu_set[[1]],predict(fitIp[[1]]))
dev.off()
...but then I tried to place two
2001 May 07
2
postscript problem
hello all,
when trying to produce a plot with the following code
postscript("g6-5000-0705-b.ps")
par(mfrow=c(4,1))
for (i in 1:4) {
somc<-cumsum(betaC[,i])/c(1:N)
plot(somc,ylim=c(min(somc),max(somc)));
}
dev.off()
I get a postscript file g6-5000-0705-b.ps, but if I try to open it
with ghostscript, or to convert it to pdf, I get the following error :
Error: /invalidfont in
2005 Mar 02
3
orientation of eps files
hello,
i have a problem with the orientation of eps files produced with the postscript() command. i have generated some eps files with R using:
postscript(file = filename, horizontal = FALSE, paper = "special", onefile = F
ALSE, height = height, width = width, pointsize = pointsize)
now, when i include these eps files into a standard paper document (ie. a4 paper, portrait orientation)
2002 Jun 17
2
layout() and postscript()
HI,
I would like to know if it's possible to create a postscript file with
multiple graphs . I'm creating some graphs by the means of a loop and I want
to save each graph in the same file (splitting making the device by the
number of graphs).
Do I have to use the par(matrix()) option, the layout() function or the
split.screen() one ?
Thanks
Nolwenn
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 Jul 11
3
postscript/eps label clipping
The following code produces an eps file with the tops of each of the ylabs
clipped off.
par(mfrow=c(2,2))
plot(runif(10),
ylab="Function(Lengthy Expression)",xlab="Prediction")
plot(runif(10),
ylab=expression(Delta * Beta^2),xlab="Prediction")
plot(runif(10),
ylab="Function(Lengthy Expression)",xlab="Prediction")
2006 Dec 28
2
Plot window - save as Postscript question
R 2.4.0 for Windows
The following plot appears as a squared window (as all r-plots)
Not all subtitles are visible, but all subtitle will appear, when
changing the aspect ratio of the plot window with the mouse to a wide
format.
But does not work when using the save as postscript menu item from the
plot window.
is there any solution for that?
opar <- par(mfrow = c(2,2), oma = c(0, 0, 1.1,
2004 Feb 20
1
unexpected postscript output with par(mfg)
Hi, a colleague of mine encountered some unexpected behavior regarding
the postscript output from R. It's difficult for me to tell whether
or not this is an R problem or a ghostview/gv/interpreter problem.
Just to note, I think it's exactly the same situation reported here:
http://finzi.psych.upenn.edu/R/Rhelp02/archive/25436.html
The following code produces a working plot (no
2003 Feb 21
1
more mulitpage postscript problems
Hi,
I posted a while ago about 'overlap' problems using png/jpeg. If what
Patrick Connolly suggests is truly happening, I think the following may be
related.
My new problem is with the following code (the overlap is still there if I
use png() instead of postscript(), compounded by the difficulty described
below):
tmp <- matrix(runif(16000), nrow=16)
2001 Aug 13
2
printing lattice plots
Hi
I'm trying to print several plots to a multi-page postscript file.
Some plots are output of basic commands, some are produced by "trellis"
commands (from the package lattice).
Right now I'm not able to get a straightforward black and white color
scheme for the latter kind: when I open the postscript file the "trellis"
plots are invisible, or parts of them are
2002 Sep 23
2
Change page in postscript()
Hi,
Another question about graphics...
Suppose I have:
par(mfrow = c(4, 6))
which will set up a figure region for 24 plots. But, I actually only need
23 plots. In fact I wrote a little function, foo.plot, which will draw
all the 23 plots at once with:
foo.plot(x)
where x is a data frame.
Now, suppose I want to draw several set of these 23 plots, but want to put
them all in one postscript