[R] Problems of metafile plots when converting word to pdf file
billpikounis at gmail.com
Tue Sep 13 16:02:53 CEST 2011
I have seen this outcome as well with graphs from time to time and
agree with Jean-Christophe that the bug seems to creep in at the
Windows / Office level. You do not mention your version of Word, but
I have seen this with Word 2000 and Word 2007 (doc and docx) software
and formats, for example.
One other workaround is to *Print* the whole document to PDF, rather
than "Save As". This would require an (Adobe) PDF driver installed on
Or as Jean-Christophe suggests, use another output format for pasting
or inserting the picture into Word. I have not had much luck with
graphs in PDF format for insertion, since I have never seen PDF as an
accepted graph format. PNG or BMP (e.g. copy file as bitmap from an R
graphics window) and others work well if you can live without
vector-based flexibility to resize the graph within the document.
Hope that helps.
On Tue, Sep 13, 2011 at 09:27, Jean-Christophe BOUËTTÉ
<jcbouette at gmail.com> wrote:
> Hi there,
> did you try saving your graph directly as pdf with R, using ?pdf
> What you're describing seems more a Word problem.
> 2011/9/13 Jin Minming <jminming at yahoo.com>:
>> Hi all,
>> I copy metafile boxplot from R to Word. Then save as Pdf file. But I found there are some unexpected black lines in some plots within this PDF file.
>> Please give me some advice how to get rid of these black lines in PDF files.
>> Thanks a lot,
>> [[alternative HTML version deleted]]
>> R-help at r-project.org mailing list
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help