[R] layout for xyplot
Jacques VESLOT
jacques.veslot at cirad.fr
Thu Sep 23 07:30:31 CEST 2004
thanks a lot !
My version is 1.9.1. :
_
platform i386-pc-mingw32
arch i386
os mingw32
system i386, mingw32
status
major 1
minor 9.0
year 2004
month 04
day 12
language R
and I'm working on a Windows2000 platform.
Besides I tried layout = c(1,1,4), but it doesn't work anymore (same error
message).
Please find my dataframe as attached file, and the first 6 columns summary
just below:
x y bloc sub inoc etat
Min. : 0.00 Min. : 0.0 1:240 C:240 2:135 : 83
1st Qu.: 3.25 1st Qu.:16.3 2:240 S:240 8:105 F : 55
Median : 6.00 Median :34.0 T:240 Fi : 38
Mean : 6.02 Mean :34.0 NF :302
3rd Qu.: 8.75 3rd Qu.:50.8 NFi: 2
Max. :12.00 Max. :68.0
Is there another means to operate better than with index.cond, by dropping
all combination of conditioning variables but one and ploting it with
layout=c(1,1).
Thanks for helping...
jacques
-----Message d'origine-----
De : Deepayan Sarkar [mailto:deepayan at stat.wisc.edu]
Envoyé : mercredi 22 septembre 2004 19:18
À : r-help at stat.math.ethz.ch; jacques.veslot at cirad.fr
Objet : Re: [R] layout for xyplot
Have you read the posting guide, which says:
<quote>
For questions about unexpected behavior or a possible bug provide
details about your platform (Windows2000, Linux, OS X) and R version
(type version at the R prompt). State the full version number, e.g.,
`1.8.1', not just `1.8'. State whether you installed a pre-compiled
binary version of R or compiled it yourself. If the function is in a
package other than `base', include the header output from
library(help=thatPackage). If you are using an old version of R and
think it does not work properly, upgrade.
</quote>
Further, we don't have access to your data, so there's no way we can
reproduce what you have done.
My guess is that you are using an old version of R and lattice, and this
bug has already been fixed. I have no idea if it would help, but have
you tried layout = c(1,1,4)?
Deepayan
On Wednesday 22 September 2004 09:32, Jacques VESLOT wrote:
> Dear all,
>
> I tried to use layout argument in xyplot to get one panel per page.
>
> I have a dataframe named 'data' with the following variables:
>
> x, y = coords,
> sub, bloc = 2-level factors,
> etat = 5-level factor,
>
> I did :
> > lset(theme = col.whitebg())
> > xyplot(y ~ x | bloc*sub , data=data, groups=etat,
>
> + layout=c(0,1,4),
> + main="Etat des plantes dans chaque bloc",
> + auto.key=list(columns=5, cex=.8),
> + scales=list(relation="free", draw=FALSE),
> + xlab="", ylab="",
> + ylim=list(c(52, 69), c(16, 33), c(35, 51), c(-1, 15)))
>
>
> and received this error message :
>
> Error in if (!any(cond.max.level - cond.current.level < 0) && (row -
> 1) * : missing value where TRUE/FALSE needed
>
> I tried some changes in arguments - notably layout=c(0,1), but
> anything works.
>
> Thanks for helping...
>
> Jacques VESLOT
> CIRAD Réunion
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
-----------------------------------------------------
CIRAD Reunion - MailScanner - NO VIRUS found
-----------------------------------------------------
More information about the R-help
mailing list