[R] Bad EMF export

Poirier Clement clement.poirier at etudiant.univ-lr.fr
Mon Oct 15 18:21:48 CEST 2007


> How are you doing this? Via code?

I just type saveCopy(file, type="emf", etc....) after the barplot()  
function ; but using windows commands (file, save as) do the same.

> If so, more than likely you forgot to add:
>
>   dev.off()
>
> after the code that generates the plot.  If you don't close the device,
> then parts of the plot are not "flushed" from the cache to the disk file
> and you are left with an incomplete plot in the file.

Ok but where has the line dev.off() to be placed ? If after the  
barplot() function, the plot disappears and there's nothing to save  
anymore ?

Thank you !

> HTH,
>
> Marc Schwartz



More information about the R-help mailing list