Jim, 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 your system. 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. Bill On Tue, Sep 13, 2011 at 09:27, Jean-Christophe BOUËTTÉ <jcboue...@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. > JC > 2011/9/13 Jin Minming <jminm...@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, >> >> Jim >> >> [[alternative HTML version deleted]] >> >> ______________________________________________ >> R-help@r-project.org mailing list >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. >> > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.