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

2011-09-19 Thread 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

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

2011-09-19 Thread Eik Vettorazzi
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,

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

2011-09-19 Thread Hofert Jan Marius
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

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

2011-09-19 Thread Eik Vettorazzi
Hi Jan Marius, I had a lot of positive experience with tkiz, but yes, handling large datasets can push it to the limits. Anyway, in your case, isn't it as simple as plot(x, y, type=b,xlab=,ylab=) title(xlab=expression(x[1]), ylab=expression(x[2]),family=serif) cheers Am 19.09.2011 14:51,