Displaying 20 results from an estimated 7000 matches similar to: "Re: metafile copy and R 1.9.0, trellis, grid"
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
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
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
2015 Jul 04
0
Support for transparency in metafile export & support for export to Powerpoint
Dear all,
Further to my previous message I now made a one-line convencience function to export your currently active graphics window/plot to either Word or Powerpoint in Office-native vector-based DrawingML format using either
export2ppt(file="plot.pptx")
or
export2doc(file="plot.docx") :
see
2011 Feb 04
1
Can an xyplot() plus legend be saved as an Enhanced Windows Metafile (EMF)?
I am trying to save some graphical output including a legend in the
Windows Enhanced Metafile (EMF) format.
This fails when xyplot() is used rather than plot().
Here is a simple example:
require(lattice)
a <- c(1:10)
b <- c(2,4,5,2,3,5,7,8,9,5)
# Output can be saved (or copied to the clipboard) as a Windows EMF image
file
# from the Graphics Device output window.
plot(a , b)
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
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 Oct 20
1
win.metafile() problem -- possible bug?
As a followup to a previous posting regarding the win.metafile()
function, I've been having some problems as well. In my case, I've been
converting some scripts from S-SPLUS to R that create graphs in order to
take advantage of R's plotmath capabilities.
In the sample code shown below, the axis labels display the units for
the data. In particular, the units for the y axis are
2011 Mar 23
3
Sweave: multiple graphic formats, e.g. win.metafile
Dear R devel,
being constrained to a windows environment at work and having colleagues being accustomed to the Microsoft Office Suite, I was looking for a way to have the RweaveLatex driver for Sweave automatically generating 'win.metafile's in addition to the pdf graphics.
Without this functionalilty, the generation of emf-graphics is quite laborious, I think:
<<>>=
plotit
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
2004 May 24
2
Metafiiles into Word R 1.9.0
Dear R-helpers,
I recently upgraded to R 1.9.0 in my computer at work and at home:
1.-The computer at home has Windows XP and Office XP and it seems to work
perfectly and I copy-paste graphics perfectly.
2.-The computer at work has Microsoft Windows 2000 (5.00.2195 Service Pack
2) and Word 2000 (9.0.4402 SR-1) I cannot copy-paste windows metafiles into
Office applications in my computer at
2001 Aug 08
3
"Transparent" background in graphics exported as metafiles
Hi,
Under Windows, I am exporting graphs from R (in metafile -emf- format), and
want to combine them using a graphic package. It happens that the background
of the graph is represented by a filled rectangle (with the color given by
bg=...). This is to be expected. However, I find no options to disable this
and produce a graph with transparent background. Does such an option exist?
If not, then
2006 Nov 15
1
trellis.par.set and grid : how to set by default that I want a grid on my graphes ?
Hello all,
I want to draw a grid behind my graphes, using lattice package.
I manage to do it with instructions like this one :
xyplot(Sepal.Length + Sepal.Width ~ Petal.Length ,
data = iris, allow.multiple = TRUE, scales = "same",type="l",
panel = function(...) { panel.grid(h=-1, v= -1) ;
panel.superpose(...)
}
)
I was wondering if there were a way to do it
2015 Jun 29
0
Support for transparency in metafile export & support for export to Powerpoint
Dear all,
For vector-based output, PDF export of R graphs works well, but unfortunately Office on Windows provide poor support for PDF and importing & exporting to other formats using Inkscape can be buggy.
Enhanced metafile export in turn does not support transparency (also not in package devEMF - are there any plans to support this perhaps in the future?). And rasterising graphs to a PNG I
2000 Feb 08
2
Windows metafile
Running
R : Copyright 1999, The R Development Core Team
Version 0.90.1 (December 15, 1999)
on NT 4.0 gives me problems with:
win.metafile(file="./x.emf")
x <- 1:100/7
plot(x,cos(x),type="n")
lines(x,sin(x))
abline(v=0:15,h=-2:2/2,col=gray(0.8))
Only labels and titles on axes are in the file.
No axes or lines of any kind. (I look at the file by
inserting it in Word,
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
2009 Mar 09
1
Adding text to both grid and base graphs
Dear all,
I'm stuck with the following problem:
I generate graphs using both the grid system (with lattice) and the base
system. I'd like to be able to identify these graphs later on with a bit of
identifying text (e.g. a date and some comments). Adding text to these
graphs cannot be done using a common system if you want to save them as emf
files. I now use:
mtext("labelling
2002 May 03
0
copy or save to metafile from graphics device shrinks plots (PR#1507)
Full_Name: Drew Tyre
Version: 1.4.0
OS: Win 2000
Submission from: (NULL) (140.253.74.225)
When creating a rather complex plot, the resulting figures 'shrink' when either
copied to the clipboard or saved as a metafile using the GUI menu. Also saving
as postscript or pdf causes the same problem, as does printing the figure
directly from the graphics window. Only the figure areas shrink,
2004 Apr 26
1
Lost graph contents using Copy as metafile
Dear colleagues:
I use R 1.9.0 on Windows XP. One of my common tasks is to get R graphs into
Word documents. A open windows() device, almost always trellis.device() for
me, provides great convenience with the right-click shortcut menu item "Copy
as metafile". I typically have the History > Recording feature turned on as
well.
Since upgrading to 1.9.0, I have experienced an
2006 Jun 01
1
Help with evaluation of expressions
Hello all:
I have searched through the help files and I have been unsuccessful in
solving this problem.
I am trying to create a small wrapper function that will go around a
call to a plot function and create a windows metafile in the directory
and also write the name of the file to a text file. The purpose is to
efficiently bring a large number of plots into powerpoint. I am using