Hofert Jan Marius
2011-Sep-19 09:58 UTC
[R] Possible or not possible: serif axis labels with plotmath [but everything else sans serif]?
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
Eik Vettorazzi
2011-Sep-19 12:38 UTC
[R] Possible or not possible: serif axis labels with plotmath [but everything else sans serif]?
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