John Kruschke
2011-Jun-22 02:31 UTC
[R] Saved EPS/PDF graphics not same as JPG/BMP graphics
When I save a particular plot as JPG or BMP, the saved image is an accurate copy of that plot. But when I save the same plot as EPS or PDF, some text elements are incorrectly altered. An example is attached. Notice in the top middle and top right panels, the x-axis labels have correct subscript 1 in the JPG, but incorrect subscript 2 in the EPS. I'm using R 2.13.0 on Windows 7. Any clues regarding the source of this error and its solution would be appreciated. For example, are there EPS/PDF device drivers that need to be separately updated? Many thanks. John K. Kruschke, Professor <http://www.indiana.edu/%7Ekruschke/DoingBayesianDataAnalysis/> -------------- next part -------------- A non-text attachment was scrubbed... Name: TestSavePlot.eps Type: application/postscript Size: 23041 bytes Desc: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20110621/8941eff0/attachment.eps>
I guess you use the menu to save the plots from your Windows device into files rather than starting separate devices explicitly? If so, please use explicit calls to the devices and everything happens as you define it. Uwe Ligges On 22.06.2011 04:31, John Kruschke wrote:> When I save a particular plot as JPG or BMP, the saved image is an accurate > copy of that plot. > But when I save the same plot as EPS or PDF, some text elements are > incorrectly altered. > An example is attached. Notice in the top middle and top right panels, the > x-axis labels have correct subscript 1 in the JPG, but incorrect subscript 2 > in the EPS. > > I'm using R 2.13.0 on Windows 7. > > Any clues regarding the source of this error and its solution would be > appreciated. For example, are there EPS/PDF device drivers that need to be > separately updated? > > Many thanks. > > John K. Kruschke, Professor > <http://www.indiana.edu/%7Ekruschke/DoingBayesianDataAnalysis/> > > > > ______________________________________________ > R-help at 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.