s-news
[Top] [All Lists]

Re: Enlarging factor labels in dotplot

To: David Parkhurst <parkhurs@ariel.ucs.indiana.edu>
Subject: Re: Enlarging factor labels in dotplot
From: Sundar Dorai-Raj <sundar.dorai-raj@PDF.COM>
Date: Thu, 18 Dec 2003 06:52:39 -0600
Cc: s-news@wubios.wustl.edu
In-reply-to: <001401c3c519$46592f10$0a6cfea9@parkhursthome>
Organization: PDF Solutions, Inc.
References: <001401c3c519$46592f10$0a6cfea9@parkhursthome>
Reply-to: sundar.dorai-raj@PDF.COM
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)

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


<Prev in Thread] Current Thread [Next in Thread>