Dear R-help,
I do not understand how to use the "sort" argument in mosaicplot().
From the documentation sort is a "vector ordering of the variables,
containing a permutation of the integers 1:length(dim(x)) (the default)."
x <- matrix(1:4,2,2)
mosaicplot(x)
# This one is OK
mosaicplot(x, sort = 1:length(dim(x)) )
# Not OK, I have the following error message:
Erreur dans mosaicplot.default(x, sort = 1:length(dim(x))) :
objet "label" non trouv?
which means that the object "label" was not found in mosaicplot.default().
How can I change the ordering of variables in mosaicplot() ?
Best,
> sessionInfo()
R version 2.4.1 (2006-12-18)
i386-apple-darwin8.8.1
locale:
C
attached base packages:
[1] "stats" "graphics" "grDevices" "utils" "datasets" "methods"
[7] "base"
--
Jean R. Lobry ([EMAIL PROTECTED])
Laboratoire BBE-CNRS-UMR-5558, Univ. C. Bernard - LYON I,
43 Bd 11/11/1918, F-69622 VILLEURBANNE CEDEX, FRANCE
allo : +33 472 43 27 56 fax : +33 472 43 13 88
http://pbil.univ-lyon1.fr/members/lobry/
______________________________________________
[email protected] 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.