Displaying 20 results from an estimated 1000 matches similar to: "Getting R graphics into MS Word (more)"
1999 Jul 21
1
Getting R graphics into MS Word
I am just downloaded R, and am using it on Windows NT.
I would like to use it to generate graphics, which will be included in
Microsoft word or Powerpoint.
The graphics window allows me to save an image as an enhanced metafile.
However, if I then insert this image into a Word document, only part of
it is visible.
Has anyone on the list experience of trying to do this?
Do I need to change the
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
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')
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
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
2005 Oct 05
2
output a sequence of plots
I can output two histograms of variables
AXFILTERED and AZPTOP as follows:
win.metafile(filename="C:/AXFILTERED.emf",pointsize=12)
hist(AXFILTERED,breaks=40)
dev.off()
win.metafile(filename="C:/AZPTOP.emf",pointsize=12)
hist(AZPTOP,breaks=40)
dev.off()
But, I actually have a dataframe of 120 variables that I
would like histograms of. Any solutions that would
save me from
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)
2012 Apr 20
1
How to make nice tiny sized figures on graphic devices producing scalable vector output?
Hello!
Usually whenever I want a tiny plot, I just create it as is (or even large) and then downscale it in the end application like LaTeX of MS Word. However, all these graphic devices like postscript, pdf, win.metafile retain physical sizes, so it would be natural if I can just insert graphics as is provided those have proper physical sizes embedded.
The question is what is the best
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 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
2009 Oct 06
2
save wmf with a batch file
Hi R users,
I'm working on a autoreporting with the batch mode of R: I would like to
save the graphs produced in wmf or emf. the problem is, it's working well
with the R gui because we print on the screen the graph devices but not with
the batch. I have used the function dev.print after encounter problem with
win.metafile.
Thanks
Guillaume
[[alternative HTML version deleted]]
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,
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
2007 Dec 02
1
odfWeave error
hello all,
I trying to use the package 'odfWeave'
and I get the follow error:
### error message
#############################################################
...
Removing content.xml
Post-processing the contents
Error in .Call("RS_XML_Parse", file, handlers, as.logical(addContext), :
Error in the XML event driven parser for content_1.xml: error parsing
attribute name
2016 Apr 25
0
ylim in barplot()
If you are using a Windows system, you can Export the plot from RStudio and save it as a metafile without using package devEMF and it will crop the bars with xpd=FALSE. When I used devEMF on a Windows machine, the bars were not cropped with barplot() as you indicated, but when I switched to plotrix::barp() they were cropped. The arguments are a bit different, but I did not need xpd=FALSE:
2011 Jun 17
1
graphsheet and export.graph equivalents in R?
R Experts
I'm currently using an S+ script of the following format and would
like to convert it to R. The script opens a graphsheet with an
associated name, plots something (in this case a boxplot) and then
exports the contents of the graphsheet of the assigned name to an EMF
file. I've been looking for something in R that would work the same way
but to no avail.
Could someone
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
2016 Apr 25
2
ylim in barplot()
Dear useRs,
I'm having troubles with using ylim in barplot(): even though I reduce
the y-scale using ylim, the bars still extend down to 0into the x-labels.
The sample data is below, and here is the code.
#This works fine but I would like to plot only from 50 to 70:
barplot(t(mydata), beside=TRUE, col=c("orange", "green", "yellow",
"purple"),
2009 May 16
1
barplot in a loop not printing out to directory
Hello!
I am experiencing a problem with section 3 of the code below. I want
to generate barplots (based on data generated in Sections 1 and 2) in
a loop - for each variable in "data" - and save them as .emf files in
my current directory. But it's not working - it's printing values to
be plotted to the screen but does not print the plots themselves
anywhere (and not in the
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