[R] fonts in mosaic
Erich Neuwirth
erich.neuwirth at univie.ac.at
Wed Mar 30 22:54:47 CEST 2011
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"))
mosaic(UCBAdmissions, labeling_args = list(
gp_labels = gpar(fontsize = 12, fontfamily = "calibri"),
gp_varnames = gpar(fontsize = 16, fontfamily = "calibri")),
main = "Main title", main_gp = gpar(fontfamily = "calibri"),
sub = "Subtitle", sub_gp = gpar(fontfamily = "calibri"),
pop=FALSE)
labeling_cells(text = UCBAdmissions, clip = TRUE,
gp_text = gpar(fontfamily = "calibri"))(UCBAdmissions)
On 3/30/2011 8:42 PM, Henrique Dallazuanna wrote:
> 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")
> ))
>
More information about the R-help
mailing list