Christian Bieli
2005-Jul-22 14:26 UTC
[R] problems with submitting an eps-file created in R
Dear all I've got some problems submitting a manuscript, because I can't manage creating the favourable eps-file of a graph created in R. The journal's graphic requirements are as followed: format: eps width: max. 6 inches resolution: min. 1000 dpi supported fonts: Arial, Courier, Helvetica, Symbol, Times, Charcoal, Chicago, Geneva, Georgia, Monaco, Zapf, New York Itried to ways of getting appropriate file: 1.Creating eps-file in R by drawing into a x11-device and then: /dev.copy2eps(file = "file.eps", onefile = TRUE, paper = "a4", family = "Helvetica", pointsize=1, print.it = FALSE, fonts = "Helvetica") /2. Generating a postscript-file in R with / //postscript(file = "file.ps", onefile = TRUE, paper = "a4", family = "Helvetica", width = 6, height = 2.2, pointsize=1, print.it = FALSE, fonts = "Helvetica")/ an trying to convert it in ghostview. Neither approach brought the favoured result. The error message I got from the quality checking program was : Warning: Document is Missing Non-Standard Font One or more non-standard fonts used in this image is not embedded. Standard fonts are: Arial, Courier, Helvetica, Symbol, Times, Charcoal, Chicago, Geneva, Georgia, Monaco, Zapf, New York. In order to repair this problem, save your document with fonts embedded. Error: Missing Fonts Challenge One or more linked or used fonts cannot be found. This is caused by DigitalExpert not being able to locate fonts on your system. All fonts used in the document must be active or have a defined and valid path so that DigitalExpert can find them. Solution The only way to repair this problem is to make the fonts available to DigitalExpert, and then reprocess the files. In order to make fonts active, either activate them using a font management program, or move them into the system:fonts folder. 1. Obviously there's a font problem. Helvetica IS installed in my OS (windows 2000). Why "DigitalExpert" does not recognize the "Helvetica" font as a standard font? I thought the fonts option would embed the specified font in the file. Am I right or is there another way to embed fonts? 2. Is there a way to set up the resolution of the created ps/eps-file in R (until now I did the settings in ghostview)? 3. I did not find particulars about the pointsize option. What is the effect of changing the pointsize value? With best regards Christian -- Christian Bieli, project assistant Institute of Social and Preventive Medicine University of Basel, Switzerland Steinengraben 49 CH-4051 Basel Tel.: +41 61 270 22 12 Fax: +41 61 270 22 25 christian.bieli at unibas.ch www.unibas.ch/ispmbs
Duncan Murdoch
2005-Jul-22 14:37 UTC
[R] problems with submitting an eps-file created in R
On 7/22/2005 10:26 AM, Christian Bieli wrote:> Dear all > > I've got some problems submitting a manuscript, because I can't manage > creating the favourable eps-file of a graph created in R. The journal's > graphic requirements are as followed: > format: eps > width: max. 6 inches > resolution: min. 1000 dpi > supported fonts: Arial, Courier, Helvetica, Symbol, Times, Charcoal, > Chicago, Geneva, Georgia, Monaco, Zapf, New York > > Itried to ways of getting appropriate file: > > 1.Creating eps-file in R by drawing into a x11-device and then: > /dev.copy2eps(file = "file.eps", onefile = TRUE, paper = "a4", family = > "Helvetica", pointsize=1, print.it = FALSE, fonts = "Helvetica") > > /2. Generating a postscript-file in R with / > //postscript(file = "file.ps", onefile = TRUE, paper = "a4", family = > "Helvetica", width = 6, height = 2.2, pointsize=1, print.it = FALSE, > fonts = "Helvetica")/ > an trying to convert it in ghostview.The ?postscript man page suggests using onefile = FALSE to get an EPSF header directly. It also suggests paper="special", and horizontal=FALSE. If that doesn't work, you'll have to ask whoever wrote the quality checking program what they're looking for. Duncan Murdoch> > Neither approach brought the favoured result. The error message I got > from the quality checking program was : > > Warning: Document is Missing Non-Standard Font > > One or more non-standard fonts used in this image is not embedded. Standard fonts are: Arial, Courier, Helvetica, Symbol, Times, Charcoal, Chicago, Geneva, Georgia, Monaco, Zapf, New York. > > In order to repair this problem, save your document with fonts embedded. > > Error: Missing Fonts > > Challenge > One or more linked or used fonts cannot be found. This is caused by DigitalExpert not being able to locate fonts on your system. All fonts used in the document must be active or have a defined and valid path so that DigitalExpert can find them. > > Solution > The only way to repair this problem is to make the fonts available to DigitalExpert, and then reprocess the files. In order to make fonts active, either activate them using a font management program, or move them into the system:fonts folder. > > > > 1. Obviously there's a font problem. Helvetica IS installed in my OS > (windows 2000). Why "DigitalExpert" does not recognize the "Helvetica" > font as a standard font? I thought the fonts option would embed the > specified font in the file. Am I right or is there another way to embed > fonts? > 2. Is there a way to set up the resolution of the created ps/eps-file in > R (until now I did the settings in ghostview)? > 3. I did not find particulars about the pointsize option. What is the > effect of changing the pointsize value? > > With best regards > Christian >
Marc Schwartz (via MN)
2005-Jul-22 14:50 UTC
[R] problems with submitting an eps-file created in R
On Fri, 2005-07-22 at 16:26 +0200, Christian Bieli wrote:> Dear all > > I've got some problems submitting a manuscript, because I can't > manage > creating the favourable eps-file of a graph created in R. The > journal's > graphic requirements are as followed: > format: eps > width: max. 6 inches > resolution: min. 1000 dpi > supported fonts: Arial, Courier, Helvetica, Symbol, Times, Charcoal, > Chicago, Geneva, Georgia, Monaco, Zapf, New York > > Itried to ways of getting appropriate file: > > 1.Creating eps-file in R by drawing into a x11-device and then: > /dev.copy2eps(file = "file.eps", onefile = TRUE, paper = "a4", family > = > "Helvetica", pointsize=1, print.it = FALSE, fonts = "Helvetica") > > /2. Generating a postscript-file in R with / > //postscript(file = "file.ps", onefile = TRUE, paper = "a4", family = > "Helvetica", width = 6, height = 2.2, pointsize=1, print.it = FALSE, > fonts = "Helvetica")/ > an trying to convert it in ghostview. > > Neither approach brought the favoured result. The error message I got > from the quality checking program was : > > Warning: Document is Missing Non-Standard Font > > One or more non-standard fonts used in this image is not embedded. > Standard fonts are: Arial, Courier, Helvetica, Symbol, Times, > Charcoal, Chicago, Geneva, Georgia, Monaco, Zapf, New York. > > In order to repair this problem, save your document with fonts > embedded. > > Error: Missing Fonts > > Challenge > One or more linked or used fonts cannot be found. This is caused by > DigitalExpert not being able to locate fonts on your system. All fonts > used in the document must be active or have a defined and valid path > so that DigitalExpert can find them. > > Solution > The only way to repair this problem is to make the fonts available to > DigitalExpert, and then reprocess the files. In order to make fonts > active, either activate them using a font management program, or move > them into the system:fonts folder. > > > > 1. Obviously there's a font problem. Helvetica IS installed in my OS > (windows 2000). Why "DigitalExpert" does not recognize the > "Helvetica" > font as a standard font? I thought the fonts option would embed the > specified font in the file. Am I right or is there another way to > embed > fonts? > 2. Is there a way to set up the resolution of the created ps/eps-file > in > R (until now I did the settings in ghostview)? > 3. I did not find particulars about the pointsize option. What is the > effect of changing the pointsize value? > > With best regards > ChristianYou need to read the help for postscript(), which specifically tells you in the Details section to use: postscript(..., onefile = FALSE, horizontal = FALSE, paper = "special") to generate EPS files. There is no resolution setting for a postscript file per se, since PS is a device independent vector based format and the resolution of the output is dependent upon the target device/viewer. One exception to this would be the embedding of a bitmapped object in a PS file, but that is not applicable here. HTH, Marc Schwartz
Prof Brian Ripley
2005-Jul-22 14:56 UTC
[R] problems with submitting an eps-file created in R
On Fri, 22 Jul 2005, Christian Bieli wrote:> Dear all > > I've got some problems submitting a manuscript, because I can't manage > creating the favourable eps-file of a graph created in R. The journal's > graphic requirements are as followed: > format: eps > width: max. 6 inches > resolution: min. 1000 dpiEPS files do not normally have a resolution.> supported fonts: Arial, Courier, Helvetica, Symbol, Times, Charcoal, > Chicago, Geneva, Georgia, Monaco, Zapf, New YorkMost of those are Windows fonts, and not accurately defined. My guess is that the checkers are not properly aware of Adobe's standards and want something other than an EPS file.> Itried to ways of getting appropriate file: > > 1.Creating eps-file in R by drawing into a x11-device and then: > /dev.copy2eps(file = "file.eps", onefile = TRUE, paper = "a4", family > "Helvetica", pointsize=1, print.it = FALSE, fonts = "Helvetica") > > /2. Generating a postscript-file in R with /Should be onefile=FALSE.> //postscript(file = "file.ps", onefile = TRUE, paper = "a4", family > "Helvetica", width = 6, height = 2.2, pointsize=1, print.it = FALSE, > fonts = "Helvetica")/ > an trying to convert it in ghostview. > > Neither approach brought the favoured result. The error message I got > from the quality checking program was : > > Warning: Document is Missing Non-Standard Font > > One or more non-standard fonts used in this image is not embedded. > Standard fonts are: Arial, Courier, Helvetica, Symbol, Times, Charcoal, > Chicago, Geneva, Georgia, Monaco, Zapf, New York. > > In order to repair this problem, save your document with fonts embedded. > > Error: Missing Fonts > > Challenge > One or more linked or used fonts cannot be found. This is caused by DigitalExpert not being able to locate fonts on your system. All fonts used in the document must be active or have a defined and valid path so that DigitalExpert can find them. > > Solution > The only way to repair this problem is to make the fonts available to DigitalExpert, and then reprocess the files. In order to make fonts active, either activate them using a font management program, or move them into the system:fonts folder. > >> 1. Obviously there's a font problem. Helvetica IS installed in my OS > (windows 2000). Why "DigitalExpert" does not recognize the "Helvetica" > font as a standard font? I thought the fonts option would embed the > specified font in the file. Am I right or is there another way to embed > fonts?No, the help file explicitly says that it is your responsibility. EPS files do not normally have fonts embedded, but they do have DSC marks telling the enclosing application to do so.> 2. Is there a way to set up the resolution of the created ps/eps-file in > R (until now I did the settings in ghostview)?EPS files do not have a resolution.> 3. I did not find particulars about the pointsize option. What is the > effect of changing the pointsize value?It's on the help page. -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595