Displaying 20 results from an estimated 4000 matches similar to: "Using postscript() in a script that is source()ed"
2004 May 29
3
panel function in a conditioned lattice graphic
I'm trying to use plotting character to encode the variable "block"
from my dataset in a conditioned lattice graphic (R 1.9.0 on Mac OS
10.3.3). The data I'm using is the dataframe "dryoutcover" which is
here (4k):
http://anthony.darrouzet-nardi.net/downloads/dryoutcover.Rdata
The code that generates my graphic almost correctly is as follows:
xyplot(coversage ~
2004 May 10
1
RODBC in RAqua
I've been trying to get RODBC working in RAqua. For my database,
let's call it "mydb", when I enter
odbcConnect("mydb")
or
odbcConnect("mydb", uid="postgres", pwd="secret"),
RAqua thinks for about 10 seconds, then crashes.
mydb is a PostgreSQL 7.4.2 database running on my machine (Mac OS X
10.3.3). I am using the pgsqlodbc 7.2.5 driver
2003 Jan 08
2
Problem with fontsize of pie-chart in postscript file
Hi all,
I've a problem with the size of the labels of my pie-charts when I try to
write them to a postscript file. I need to increase the default size, so I
change cex (see below). On screen this works fine, but cex doesn't seem to
affect the postscript-file. Any suggestions?
Thanks a lot,
Daniel
Copy/Past-example (will try to write to c:/temp!):
labels <- c("I",
2013 Apr 14
1
Postscript files graphic quality and other problems
Hi all,
I try to save graphic as eps file, but I have probles with quality. My
graphics as pdf file is ok. The quality is very good. But when I save as
eps the quality is very poor.
I try convert pdf to eps file using others programs like adobe acrobat
and the quality of eps is like pdf (file is larger than). I try lot of
recommendation found in google and others lists.
I used:
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
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
2008 Aug 04
1
R init file and source()
In the context of calling R from another program (namely gretl,
http://gretl.sourceforge.net ) I'm trying to understand the
interactions of the R init file (corresponding to the environment
variable RPROFILE) and the source() function.
I'll illustrate my problem with the following simplified contrast
implemented in the bash shell (with R 2.7.1).
1. Works fine:
allin at myrtle:~/Rfoo$
2010 Feb 12
1
Problems with savePlot() and postscript under Snow Leopard
Dear all,
I tried:
> iris
> species.n <- as.numeric(Species)
> plot(iris, col = species.n)
> savePlot(filename="IrisTestPlot", type="png")
and got the error message:
Fehler in savePlot(filename = "IrisTestPlot", type = "png") :
kann nur aus 'X11(type="*cairo")' Devices kopieren
(sorry, I have a german version of R).
I
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°.
2009 May 08
2
postscript()-resolution
Dear users,
another question concerning graphics for publications. My favourite journal
wants .eps-graphics,
and from older postings i adapted the following code:
postscript(file="Figure1.eps", title="Figure 1", width=11.5, height=8,
paper="a4",onefile=FALSE)
However, when checking the properties of this file, it is a .ps and not a
.eps file. So, i konverted to
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
>
2005 Sep 21
2
controlling usage of digits & scientific notation in R plots; postscript margins
Dear R users:
I assigned students to make some graphs and I'm having trouble answering
some questions that they have. We are all working on R 2.1 on Fedora
Core Linux 4 systems.
1. In the plot, the axis is not labeled by "numbers", but rather
scientific notation like "-2e+08" or such. We realize that means
-200,000,000. We want to beautify the plot. We would rather
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
2002 Aug 30
2
postscript() problem
Hi R-users,
I am using "postscript("xx.eps", horizontal=FALSE, onefile=FALSE,
height=6, width=10, pointsize=10)" and "barplot(xx.dat)" in R to produce
EPS graphics for LATeX document. When checking the graphics with "gv" I
see that it was not produced with full details. The main graphic is
there, but axes labels and titles are missing. While checking the
2003 Aug 24
1
Encapsulated postscript and the family argument
> version
_
platform i686-pc-linux-gnu
arch i686
os linux-gnu
system i686, linux-gnu
status
major 1
minor 7.1
year 2003
month 06
day 16
language R
>From my investigations, it would appear that if I wish to
2005 Apr 27
1
postscript (eps) / latex / par(mfg=...) / problem! (PR#7820)
Full_Name: Dan Freak Bolser
Version: Version 2.0.0 (2004-10-04)
OS: Linux 2.4.20-31.9 (RedHat 9)
Submission from: (NULL) (62.253.128.15)
The same problem I am having has been reported here
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
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")
2005 Apr 09
1
PostScript scatter plot, losing points at RHS
I'm using the following sequence to plot a scatter plot to PostScript.
Those familiar with the Iris LDA example in MASS will recognise what
I'm at.
> postscript("hulda.eps", horizontal=FALSE, onefile=TRUE, height=6, width=6, pointsize=8, paper="special")
> plot(hu.ld, type = "n", xlab= "first linear discriminant", ylab="second linear
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",