[R] sort argument in mosaicplot
Jean lobry
lobry at biomserv.univ-lyon1.fr
Fri Mar 23 13:11:29 CET 2007
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 (lobry at biomserv.univ-lyon1.fr)
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/
More information about the R-help
mailing list