Re: [R] Mono in postscript device

From: Benjamin Otto <b.otto_at_uke.uni-hamburg.de>
Date: Wed, 12 Dec 2007 10:54:17 +0100

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:
> postscript(filename="myfile.ps")
> par(mfrow=c(2,2),family="mono")
> plot(1:10)
> plot(1:10)
> plot(1:10)
> plot(1:10)
> dev.off()

Version 2:
> postscript(filename="myfile.ps")
> plot(1:10,family="mono")
> dev.off()

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:

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

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,

> postscript(family="mono")
> plot(1:10)
> dev.off()

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.

> Thanks guys for your help.
> Best regards
>
> Benjamin
>
> sessionInfo()
>
> R version 2.5.0 (2007-04-23)
> i386-pc-mingw32

[...]

-- 
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



-- 
Pflichtangaben gemäß Gesetz über elektronische Handelsregister und Genossenschaftsregister sowie das Unternehmensregister (EHUG):

Universitätsklinikum Hamburg-Eppendorf
Körperschaft des öffentlichen Rechts
Gerichtsstand: Hamburg

Vorstandsmitglieder:
Prof. Dr. Jörg F. Debatin (Vorsitzender)
Dr. Alexander Kirstein
Ricarda Klein
Prof. Dr. Dr. Uwe Koch-Gromus
______________________________________________
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.
Received on Wed 12 Dec 2007 - 10:03:20 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 12 Dec 2007 - 10:30:18 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.