Re: [R] fonts in mosaic

2011-04-02 Thread Erich Neuwirth
The problem of changing the default font used fpr the windows graphics device seems to be quite complicated. As I wrote already windowsFonts(myfont=Consolas) par(family=myfont) will make the windows graphics device use Consolas as the defaut font for labels. Therefore, a function call like

Re: [R] fonts in mosaic

2011-04-02 Thread David Winsemius
On Apr 2, 2011, at 6:02 AM, Erich Neuwirth wrote: The problem of changing the default font used fpr the windows graphics device seems to be quite complicated. As I wrote already windowsFonts(myfont=Consolas) par(family=myfont) will make the windows graphics device use Consolas as the defaut

Re: [R] fonts in mosaic

2011-04-02 Thread David Winsemius
On Apr 2, 2011, at 11:16 AM, David Winsemius wrote: On Apr 2, 2011, at 6:02 AM, Erich Neuwirth wrote: The problem of changing the default font used fpr the windows graphics device seems to be quite complicated. As I wrote already windowsFonts(myfont=Consolas) par(family=myfont) will

Re: [R] fonts in mosaic

2011-03-31 Thread Michael Friendly
If you are doing multiple plots like this, there is no way I know of to specify the fonts for labeling *once* for all such plots. However, you can do something like this to save typing and keep things consistent: my.largs - list( gp_labels = gpar(fontsize = 12, fontfamily = calibri),

Re: [R] fonts in mosaic

2011-03-31 Thread Erich Neuwirth
The easiest way of changing the font used for labels by the windows graphics device (opened by a call to windows()) seems to be the following: Let us assume we want to use the font Consolas for all labels: windowsFonts(myfont=Consolas) par(family=myfont) If one later on wants to change the

[R] fonts in mosaic

2011-03-30 Thread Erich Neuwirth
I need to change the font(s) used in mosaic from package vcd. The help file and the vignette do not give very explicit examples for doing that. The easiest solution would be changing the font for everything on the graph: var labels, var names, title, subtitle, and cell labels. What is the easiest

Re: [R] fonts in mosaic

2011-03-30 Thread Achim Zeileis
On Wed, 30 Mar 2011, Erich Neuwirth wrote: I need to change the font(s) used in mosaic from package vcd. The help file and the vignette do not give very explicit examples for doing that. The easiest solution would be changing the font for everything on the graph: var labels, var names, title,

Re: [R] fonts in mosaic

2011-03-30 Thread Erich Neuwirth
Achim I simply want to replace the font R uses on mosaic (whatever it is) by a font of my choice (say Calibri or Arial) because I need to embed the R charts in a PowerPoint presentation and want the fonts to match. And I want the most simple way of accomplishing this. I worked my way through the

Re: [R] fonts in mosaic

2011-03-30 Thread Henrique Dallazuanna
Try this: windowsFonts(calibri = windowsFont(Calibri)) mosaic(UCBAdmissions, labeling_args = list( gp_labels = gpar(fontsize = 12, fontfamily = calibri), gp_varnames = gpar(fontsize = 16, fontfamily = calibri) )) On Wed, Mar 30, 2011 at 3:25 PM, Erich Neuwirth erich.neuwi...@univie.ac.at

Re: [R] fonts in mosaic

2011-03-30 Thread Achim Zeileis
On Wed, 30 Mar 2011, Erich Neuwirth wrote: Achim I simply want to replace the font R uses on mosaic (whatever it is) by a font of my choice (say Calibri or Arial) because I need to embed the R charts in a PowerPoint presentation and want the fonts to match. Ah, ok, sorry I misread your mail.

Re: [R] fonts in mosaic

2011-03-30 Thread Prof Brian Ripley
On Wed, 30 Mar 2011, Achim Zeileis wrote: On Wed, 30 Mar 2011, Erich Neuwirth wrote: Achim I simply want to replace the font R uses on mosaic (whatever it is) by a font of my choice (say Calibri or Arial) because I need to embed the R charts in a PowerPoint presentation and want the fonts to

Re: [R] fonts in mosaic

2011-03-30 Thread Erich Neuwirth
Here is a more complete solution to my problem. The fact that the parameters are called gp_varnames, gp_labels, and gp_text on one hand, but main_gp and and sub_gp on the other hand comes as a surprise when one tries to find a solution. windowsFonts(calibri = windowsFont(Calibri))