Displaying 20 results from an estimated 2000 matches similar to: "Windows metafiles (emf) under Linux"
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
2009 Sep 08
1
Changing font to times for EMF graphics
Hi,
sorry for the simple question. I am usually able to change the font for PDF graphics with pdf.options(family="Times")
However, I have found no way yet to get an emf file with a times font. I also tried a detour by using pstoedit to convert a pdf with the desired font to an emf but even there the font does not appear as times.
Is there a way to get a times font in an emf file or is
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
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 =
2003 Oct 20
1
Re: win.metafiles in linux and R
I posted a similar query some months ago. Some people answered stating that
win.metafiles were not available for R in linux. However, I was suggested
to use the package RSvgDevice, which allows transforming any graphic device
into Scalable Vector Graphics format, this file can then be opened with
sodipodi, and really impresive stuff can be achieved. I also noticed that
OpenOffice for linux has an
2007 Oct 15
2
Bad EMF export
Hello dear useRs,
I'm trying to export a barplot into an emf file. My problem is that
the plot is properly printed into the file, except the bars that do
not appear :(
I've experienced some problems also with simple points plots, in which
points did not appear (same problem).
Can you help me please ?
Thanks in advance !
Clement Poirier
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
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,
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
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
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 Oct 29
2
plot pdf
I want to plot the unstadardized version of a normal plot. Can you explain why that is not working?
Dev.set(1)
xcrit=-1.645
cord.x <- c(-3,seq(-3,xcrit,0.01),xcrit)
cord.y <- c(0,dnorm(seq(-3,xcrit,0.01)),0) # what does final 0 do here?
curve(dnorm(x,0,1),xlim=c(-3,3),main='Normal PDF')
polygon(cord.x,cord.y,col='orange')
1999 Jul 23
2
Getting R graphics into MS Word (more)
Further to my earlier question.
Thank you to:
John Maindonald, Ramon Diaz-Uriarte, Brian Ripley, Alvaro Novo, Simon
Bond and David Scott
for your helpful replies.
I have looked at the problem in some more detail.
I am using
Rgui.exe Version 0.64.2 (July 3, 1999)
running under Windows NT
To demonstrate the problem, I run the program:
> win.graph(width=5, height=3)
> data(women)
>
2003 Jul 03
2
Bug in plotting groupedData-objects
Dear Experts,
May be the problem is still solved, however I tried to find the answer in
the archives:
I use:
> R.version
_
platform i386-pc-mingw32
arch i386
os mingw32
system i386, mingw32
status
major 1
minor 7.1
year 2003
month 06
day 16
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 Apr 05
3
slides in linux R
Hello,
In S-Plus Windows you can transform graphics to Powerpoint very easily, in R Windows you can use enhanced metafiles (.emf) and Powerpoint almost as easy. Is there a simular way with R in Linux to transform to the presentation program in StarOffice or OpenOffice or are you stuck with the pdf device?
Fredrik Lundgren
2016 Apr 26
1
ylim in barplot()
Thank you David,
That's a nice workaround using plotrix::barp(), but that doesn't explain
why ylim doesn't work as intended (or at least, as I expect it to work),
or why xpd has no influence when using devEMF::emf()...
The problem with saving directly in RStudio is that it requires to
manually save the plot, and this becomes troublesome when there are a
lot of plot commands in a