David Parkhurst wrote:
I have a dotplot somewhat like example.dotplot() that comes with splus.
(I’m using Professional Edition Version 6.1.2 Release 1 for Microsoft
Windows : 2002.) I’d like to make the factor labels along the left
margin larger, and can’t figure out how. I tried inserting cex=1 into
my call to dotplot, but that made the plotted points bigger, not the
text. (I was able to enlarge the text in the label strip, following
examples in the programmer’s manual.)
I’d appreciate advice on how to enlarge the factor labels along the left
side. Thanks.
Dave Parkhurst
Look at ?trellis.args:
scales
A list that determines how the x- and y-axes (tick marks and tick
labels) are scaled and drawn. The list contains parameters in name=value
form, and may also contain two other lists of the same type, named x and
y. Parameters specified in the x or y components affect only that axis;
those specified at the top level of scales affect both axes. <snip>
So in your call to dotplot:
dotplot(variety ~ yield | year * site, data = barley, aspect = 0.4,
xlab = "Barley Yield (bushels/acre)",
scales = list(y = list(cex = 2)))
Hope this helps.
Sundar
|