Skip to content
Prev 245166 / 398502 Next

legend not appearing in Word document

Duncan,

I am starting to think the problem is the number of colors being used in
the legend when using Word 2007 and the eps file format.  I have played
around with the number of colors in mycol and found that it works for under
3000 colors (length mycol<3000), but I only get an empty (colorless) box
when using greater than 3000 colors.  I am not sure why 3000 would be a
cut-off, but by reducing my color pallet I have been able to get the legend
to open in Word 2007.  Word 2010 may allow for more colors, or treat colors
in a different way.  I haven't been able to test this out on different
machines, so it still could be specific to my machine for some reason.  The
eps format also converts well into pdf format.  I still haven't found a way
to get the wmf format to work correctly when converting it to pdf, so am
simply re-saving all of my figures in eps.

Aloha,

Tim



Tim Clark
Marine Ecologist
National Park of American Samoa
Pago Pago, AS  96799
Tim_Clark at nps.gov


                                                                           
             "Robert Baer"                                                 
             <rbaer at atsu.edu>                                              
                                                                        To 
             12/16/2010 07:30          "Duncan Murdoch"                    
             AM                        <murdoch.duncan at gmail.com>, "Tim    
                                       Clark" <mudiver1200 at yahoo.com>      
                                                                        cc 
                                       "r help r-help"                     
                                       <r-help at r-project.org>, "Tim Clark" 
                                       <tim_clark at nps.gov>                 
                                                                   Subject 
                                       Re: [R] legend not appearing in     
                                       Word document
converted
best
know
I
offer
either
For what it is worth, I just tried importing the .eps legend into Word 2010

and it seemed to work fine suggesting that MS may have updated their .eps
import driver with that version of Office?

Rob