[R] Possible or not possible: serif axis labels with plotmath [but everything else sans serif]?

Hofert Jan Marius marius.hofert at math.ethz.ch
Mon Sep 19 14:51:01 CEST 2011


Dear Eik,

although possible in this case, tikzDevice is certainly not a general solution to all kinds of problems :-) I used it for quite some time before I gave up: I had a simple bar plot, the bars being black. This already caused errors like "TeX capacity exceeded" ... and I obtained these a lot. In fact, enlarging the TeX capacity (not trivial but possible) did not solve these issues. That's why I gave up on this package [although, clearly, the idea of full TeX support is totally appealing -- that's why I looked at the package in the first place].

Cheers,

Marius

On 2011-09-19, at 14:38 , Eik Vettorazzi wrote:

> Hi Jan Marius,
> using the tikzDevice-package, nearly everything is possible (at least,
> all what can be done in LaTeX).
> 
> cheers
> 
> Am 19.09.2011 11:58, schrieb Hofert Jan Marius:
>> Dear expeRts,
>> 
>> I it possible to have serif labels in the following plot?
>> 
>> x <- 1:10
>> y <- x
>> plot(x, y, type="b", xlab=expression(x[1]), ylab=expression(x[2]))
>> 
>> I know that one can use pdf(, family="serif"), but then also the axis tick marks 
>> are printed in serif font. Apart from the fact that it may not look nice, I'm 
>> just interested if one can have serif axis labels but everything else in sans serif
>> (default).
>> 
>> Cheers,
>> 
>> Marius
>> ______________________________________________
>> 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.
> 
> 
> -- 
> Eik Vettorazzi
> Institut für Medizinische Biometrie und Epidemiologie
> Universitätsklinikum Hamburg-Eppendorf
> 
> Martinistr. 52
> 20246 Hamburg
> 
> T ++49/40/7410-58243
> F ++49/40/7410-57790
> 
> --
> 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, Joachim Prölß, Prof. Dr. Dr. Uwe Koch-Gromus 
> 

ETH Zurich
Dr. Marius Hofert
RiskLab, Department of Mathematics
HG E 65.2
Rämistrasse 101
8092 Zurich
Switzerland

Phone +41 44 632 2423
marius.hofert at math.ethz.ch
http://www.math.ethz.ch/~hofertj



More information about the R-help mailing list