Skip to content

biplot

3 messages · Wolfgang Koller, Thomas W Blackwell, Uwe Ligges

#
Dear list,

 I want to perform a biplot, using customized titels for the x and y axis.
Setting xlab="" and ylab="" resulted in an error, e.g.:
Error in biplot.default(t(t(scores[, choices])/lam), t(t(x$loadings[,  : 
        length of dimnames[1] not equal to array extent
How do I proceed?

Thanks in advance!

Wolfgang Koller


-------------------------------------------------
Wolfgang Koller,  wolfgang.koller at wu-wien.ac.at
Forschungsinstitut f?r Europafragen
Wirtschaftsuniversit?t Wien
Althanstra?e 39-45, 1090 Vienna, Austria
Tel: ++43/1/31336/4147  Fax: ++43/1/31336/758
http://fgr.wu-wien.ac.at/institut/ef/ief-home.htm
-------------------------------------------------
#
Wolfgang  -

Due to a name conflict with the other arguments to biplot()
named "xlabs" and "ylabs", you have to set those arguments
explicitly, in order to be able to set xlab="", ylab="" as
well.  The following command works for me:

biplot(princomp(USArrests), xlabs=dimnames(USArrests)[[1]],
  ylabs=dimnames(USArrests)[[2]], xlab="", ylab="")

This complication is unfortunate, but it's a consequence of
partial matching of argument names.

-  tom blackwell  -  u michigan medical school  -  ann arbor  -
On Fri, 4 Apr 2003, Wolfgang Koller wrote:

            
#
Wolfgang Koller wrote:
This will work for R-1.7.0 (beta; in developement).
For the meantime follow Thomas Blackwell's suggestion.

Uwe Ligges