See the scales argument of xyplot: e.g.

densityplot(~values | groups, pch=".", scales = list(y = "free")).


Best regards

Frede Aakmann Tøgersen
Scientist


UNIVERSITY OF AARHUS
Faculty of Agricultural Sciences
Dept. of Genetics and Biotechnology
Blichers Allé 20, P.O. BOX 50
DK-8830 Tjele

Phone:   +45 8999 1900
Direct:  +45 8999 1878

E-mail:  [EMAIL PROTECTED]
Web:       http://www.agrsci.org                                

This email may contain information that is confidential.
Any use or publication of this email without written permission from Faculty of 
Agricultural Sciences is not allowed.
If you are not the intended recipient, please notify Faculty of Agricultural 
Sciences immediately and delete this email.



 

> -----Oprindelig meddelelse-----
> Fra: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] På vegne af Joe Bloggs
> Sendt: 14. november 2007 03:24
> Til: [EMAIL PROTECTED]
> Emne: [R] differing scales for lattice plot panels
> 
> Hi,
>    I want to compare densities across several groups with: 
> densityplot(~values | groups, pch=".")
> However one of the groups has an almost point-like distribution. 
> This forces the y-axis scale to be so large that the other 
> distribution curves are all flat in comparison and get lost 
> amongst the data dots.
> How can I produce a lattice plot with different y-axes 
> (preferably automatically scaled) for each panel?
> 
> ______________________________________________
> R-help@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.
> 

______________________________________________
R-help@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.

Reply via email to