Displaying 20 results from an estimated 10000 matches similar to: "Lost graph contents using Copy as metafile"
2003 Oct 19
2
problem with win.metafile( ): traceback()
For the first error message:
> win.metafile(file = "//.../plot1.wmf",
+ width = 8.5, height = 6.25)
> lset( list( background = list(col = "white")))
Error in get(x, envir, mode, inherits) :
variable "win.metafile://.../plot1.wmf" was not found
> traceback()
4: get(device)
3: trellis.device(device = .Device, new = FALSE)
2: trellis.par.get(item)
1:
2004 May 08
2
metafile copy and R 1.9.0
Dear all,
I'm running into problem in R-1.9.0 that hasn't happened with R-1.8.x
If I make a plot with xyplot(), and use the menu to either save to a metafile or copy to clipboard as a metafile to export to eg
Powerpoint, I can just copy a blank then. This does not occur with the classical plot(). Thus, I suppose that it may come from
lattice or grid (going through the R-archives I
2004 May 08
0
Re: metafile copy and R 1.9.0, trellis, grid
OK. Deepayan sent me the copy of a chat on another list between John Fox, Duncan Murdoch and Paul Murrell. The bug in the gui.exe
looks like being reported with an example to turn it before he has been definetely fixed. Just try:
trellis.device("win.metafile", file="test.emf")
data(iris)
cloud(Sepal.Length ~ Petal.Length * Petal.Width | Species, data =
iris, screen = list(x =
2002 Jun 05
2
par(new=T) with xyplot
I know I should not mix base plotting functions with grid/lattice functions,
but I have used a "quick-and-dirty" trick of par(new=T) in the past for
annotating a trellis-drawn graph in various versions of S-PLUS. The
sequence goes something like this:
> windows(width = 5, height = 5, pointsize = 10) # open up the device
> xyplot(y ~ x)
> par(new=T)
> xyplot(y2 ~ x)
>
2002 Jan 04
0
copy metafile from window() device fails when lattice/grid is (PR#1242)
Dear all,
I'm running into a rather strange problem that hasn't happened before
R-1.4.0. If I make a plot on a window() device, and use the menu to either
save to a metafile or copy to clipboard as a metafile, I get an error
message in the R console:
Error: A metafile can store only one figure.
This only happens when the lattice (and grid) package is attached,
regardless of whether the
2002 Jan 04
0
(PR#1242) copy metafile from window() device fails when
The problem is known and is in grid/lattice. That starts up a blank page
before the first plot. It is not related to 1.3.1/1.4.0, but to grid
updates. Paul Murrell has been informed!
On Fri, 4 Jan 2002 andy_liaw@merck.com wrote:
> Dear all,
>
> I'm running into a rather strange problem that hasn't happened before
> R-1.4.0. If I make a plot on a window() device, and use
2003 Jan 29
2
browser() misbehavior ?
Under v1.6.2, Windows NT4 OS, when a function contains an execution error
and I have placed browser() in inside the function body, the call to browser
is ignored. A brief example to illustrate:
> foo <- function(x) {
+ y <- x ^ 2
+ browser()
+ foo2(x) ## Intentional error
+ x ^ 3
+ }
>
> foo(30)
Called from: foo(30)
Browse[1]>
Error in foo(30) : couldn't find
2002 Mar 13
1
win.metafile and multiple plots
I'm having difficulty using the win.metafile command. I'd like to place
three plots in one window and then save the window as a metafile. The
commands I want to use are:
win.metafile("mike.emf",width=3,height=2,pointsize=10)
nf <- layout(matrix(c(1,2,3), 3, 1), heights=c(1,1,1))
layout.show(nf)
plot(rnorm(10))
plot(rnorm(10))
plot(rnorm(10))
dev.off()
However, I get the
2010 Dec 22
1
Poor quality plotting symbols in Windows metafile
Hello,
when I try to use the filled circle (pch = 16) in a Windows metafile, it appears highly pixelated rather than as a smooth vector.
The other filled circles (pch = 19 and 20) are vector circles, filled with pixels.
Results are the same whether I use windows() and save or copy as a metafile, or win.metafile()
Also, some of the other symbols are misshapen, e.g. the diamond pch = 23 is not
2005 Sep 21
2
win.metafile on linux?
Dear R-help,
Is it possible to use win.metafile() on *nix versions of R?
I tried R 2.1.1 on FreeBSD and R 1.9.0 on redhat with no success. I need
to give some graphs generated in R to my boss so that he can modify them
in Powerpoint to fit he style of his presentation. Recommendations on
other methods are appreciated as well.
Hao
--
: Hao Chen, Ph.D.
: Instructor
: Department of
2008 Dec 08
1
Save image as metafile
Hi,
how can I save an image as a metafile?
I know within windows you can do a right click and then 'save image as
metafile'
but I use Mac OS X...I know as well that mac users have a right click as
well, but
it does not work.
Is there a command in R for saving images as metafiles?
Regards,
mentor
--
View this message in context:
2007 Jun 29
1
Print grid/ggplot to a metafile
Dear UseRs called Hadley, or Paul,
I am trying to print an edited ggplot2/grid graphics to a metafile. With the
commented line below it works, but when I edit the plot by uncommenting the
line, it fails, because it's illegal to have 2 graphics in a metafile. It
works with pdf, but even then I get two plots, which is a nuisance.
I found a workaround by using windows(); savePlot, but it only
2002 Jun 06
0
Thanks and Summary (was par(new=T) with xyplot)
Thanks very much to Paul Murrell and Frank Harrell for addressing my
original query (repeated at end of this note). Paul's helpful suggestion
with print.trellis and its more= argument, followed by trellis settings,
works precisely as I needed.
> # snipped from Paul's reply:
> p1 <- xyplot(y ~ x, ylim=c(-5, 5))
> p2 <- xyplot(y2 ~ x, pch=16, ylim=c(-5, 5), ylab="
2009 Jun 18
1
win.metafile() and family
Hi all,
I recently discovered how great win.metafile is for getting high resolution graphics into word.
Having problems with specifying families though...
#pdf works fine
pdf("test.pdf",width=14,height=9)
par(family="Helvetica")
plot(1:10)
text(4,4,"trial")
dev.off()
windows
2
#metafile doesnt like helvetica family
2003 Sep 12
1
win.metafile, devga, tkrplot in R 1.8.0
Hi,
I just downloaded
rw1080dev.exe 09-Sep-2003 07:42 21.6M
from
http://www.stats.uwo.ca/faculty/murdoch/software/r-devel/
and tried using tkrplot on Windows 2000.
.First.lib failed to load the dll:
.Tcl(paste("load", file, "Rplot"))
appeared to be mixing up double-backslashes and forward slashes:
[tcl] couldn't load library "C:w1080devlibrary
1999 Jul 05
1
win.metafile use
Platform: Windows 95
Version : R0641
Problem : I wish to plot and save a large number of graphics files in
windows metafont format. I have a very crude postscript printing
function, which happily handles repeated calls:
psf<-function(filename){
dev.print(postscript,file=paste(sep="",filename,".ps"),horizontal=F)
return()
}
To produce metafont files, I
2003 Oct 20
0
Re: win.metafiles in linux and R
Dear all:
Professor Ripley commented:
> Note that libEMF's help page says
>
> It is also possible now to generate EMF files from PSTOEDIT
> on POSIX
> systems. Therefore, if your graphics code only outputs
> PostScript, you
> can now easily convert it to EMF.
>
> but that is only true on Windows (unfortunately).
>
Actually I have had some luck
2010 Mar 18
2
multiple print commands in win.metafile()
Hi All,
I need a file which I can import to MS Word, I'm trying win.metafile(), but
it does not seem to support multiple print commands at once (please see
below). Is there an alternative to get plots file which can be used in
powerpoint/word?
# R code:
# this does not work; but same thing works with pdf()
library(lattice)
win.metafile("test.wmf")
p1 <- xyplot(decrease ~
2003 Mar 15
1
plots to metafile and x/y ratio
Dear all,
I have a problem which I'm not sure if it is due to my machine or if I'm
doing something wrong.
I'm ploting a little map using plot(val, type="l", asp=1) where val is
the object with the latitude/longitude data.
In the screen the figure is perfect, and I can copy to the clipboard and
paste it to other places. I can also saved using png() or jpeg(),
althoug
2006 Feb 17
3
Windows metafile problem
Hi All:
I'm using win.metafile() to produce windows metafiles.
When I use Word to insert the wmf picture, Word gives an error!
I did my homework in posting this question, and couldn't find a fix.
Any suggestions?
Phil Smith
CDC