[R] Adjusting font size in a lattice graph

David Winsemius dwinsemius at comcast.net
Wed Apr 1 04:44:57 CEST 2009


On Mar 31, 2009, at 10:38 PM, David Winsemius wrote:

> > 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), ...

Er, please make that: scales = list(cex=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




More information about the R-help mailing list