[R] [HH] changing font size in interaction2wt

Patrick Drechsler patrick at pdrechsler.de
Sun Dec 16 01:04:43 CET 2007


Hi,

I would like to change font sizes (more generally the cex) in plots
produced by the function "interaction2wt" of the "HH" package.

Here is an example (from the interaction2wt example) of what I have
tried:

--8<---------------cut here---------------start------------->8---
rm(list = ls(all = TRUE))
rm(list = c(ls()))

library("HH")

## From the example:
vulcan <- read.table(hh("datasets/vulcan.dat"), header = TRUE)

## I would like to change the size (cex) of the axes description,
## labels and the overall line widths.
trellis.par.set(par.xlab.text = list(cex = 0.3),
                par.ylab.text = list(cex = 0.3),
                axis.text = list(cex = 0.3),
                par.main.text = list(cex = 0.3),
                par.sub.text = list(cex = 0.3),
                add.text = list(cex = 0.3))

foo <- interaction2wt(wear ~ filler + pretreat + raw, data = vulcan)
plot(foo)
--8<---------------cut here---------------end--------------->8---

Thankful for any pointers,

Patrick



More information about the R-help mailing list