Skip to content

Mono in postscript device

4 messages · Benjamin Otto, Brian Ripley

#
Hi,

Plotting a graphic into a postscript device using family="mono" returns the
following error message:
Looking at postscriptFonts() however lists the "Courier" font as availeable
mono font. So where is the problem?


Thanks guys for your help.
Best regards

Benjamin



sessionInfo()

R version 2.5.0 (2007-04-23) 
i386-pc-mingw32 

locale:
LC_COLLATE=English_United States.1252;LC_CTYPE=English_United
States.1252;LC_MONETARY=English_United
States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252

attached base packages:
[1] "tools"     "stats"     "graphics"  "grDevices" "utils"    
[6] "datasets"  "methods"   "base"     

other attached packages:
      affy     affyio    Biobase hgu133acdf    hgu133a 
  "1.14.0"    "1.4.0"   "1.14.0"   "1.16.0"   "1.16.0" 
 
======================================
Benjamin Otto
University Hospital Hamburg-Eppendorf
Institute For Clinical Chemistry
Martinistr. 52
D-20246 Hamburg

Tel.: +49 40 42803 1908
Fax.: +49 40 42803 4971
======================================
#
On Tue, 11 Dec 2007, Benjamin Otto wrote:

            
The 'problem' is that you have not provided us with reproducible code, and 
used an obsolete version of R.  At least some of the ways you might have 
done this you needed to specify the 'fonts' argument to postscript().

As a minimal example,
works in R 2.6.1.  If that does not work for you, you need to update.
If it does, you need to consider what you did differently.
[...]
#
Dear Prof. Ripley,

Your version does work indeed, I hadn't tested this one. I tried the
following two versions where neither of them did:

Version 1:
Version 2:
Best regards,

Benjamin Otto

-----Urspr?ngliche Nachricht-----
Von: Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk] 
Gesendet: Tuesday, December 11, 2007 5:48 PM
An: Benjamin Otto
Cc: R-Help
Betreff: Re: [R] Mono in postscript device
On Tue, 11 Dec 2007, Benjamin Otto wrote:

            
The 'problem' is that you have not provided us with reproducible code, and
used an obsolete version of R.  At least some of the ways you might have
done this you needed to specify the 'fonts' argument to postscript().

As a minimal example,
works in R 2.6.1.  If that does not work for you, you need to update.
If it does, you need to consider what you did differently.
[...]


-- 
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
#
So this was an RTFM issue: you needed to declare fonts="mono".
works, as documented.
On Wed, 12 Dec 2007, Benjamin Otto wrote:

            
The argument is *file* ....