[R] Adjusting font size in a lattice graph

David Winsemius dwinsemius at comcast.net
Wed Apr 1 04:38:28 CEST 2009


 > tp1.nDai=xyplot(value ~ yr | Name, data = nDai,type = 'o')
Error in eval(substitute(groups), data, environment(x)) :
   object "nDai" not found
 > update(tp1.nDai, aspect = c(0.8), layout = c(4, 4))
Error in update(tp1.nDai, aspect = c(0.8), layout = c(4, 4)) :
   object "tp1.nDai" not found

(Not very reproducible, eh?)

?xyplot
# try adding:
   ..., scales=list(ces=0.5), ...

--  
David Winsemius



On Mar 31, 2009, at 9:49 PM, Andrew McFadden wrote:

> Hi all
>
> I have created a lattice graph but the text appears too big. Just
> wondering if there was a way I could change the font size.
>
> tp1.nDai=xyplot(value ~ yr | Name, data = nDai,type = 'o')
> update(tp1.nDai, aspect = c(0.8), layout = c(4, 4))
>
> I would appreciate your help.
>
> Kind regards
>
> andy
>
> Andrew McFadden MVS BVSc
> Incursion Investigator
> Investigation & Diagnostic Centres - Wallaceville Biosecurity New
> Zealand Ministry of Agriculture and Forestry
>
> Phone 04 894 5600 Fax 04 894 4973 Mobile 029 894 5611 Postal address:
> Investigation and Diagnostic Centre- Wallaceville Box 40742 Ward St
> Upper Hutt
>
>
> ########################################################################
> This email message and any attachment(s) is intended solely for the
> addressee(s) named above. The information it contains is confidential
> and may be legally privileged.  Unauthorised use of the message, or  
> the
> information it contains, may be unlawful. If you have received this
> message by mistake please call the sender immediately on 64 4 8940100
> or notify us by return email and erase the original message and
> attachments. Thank you.
>
> The Ministry of Agriculture and Forestry accepts no responsibility for
> changes made to this email or to any attachments after transmission  
> from
> the office.
> ########################################################################
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

David Winsemius, MD
Heritage Laboratories
West Hartford, CT




More information about the R-help mailing list