[R] biplot

Thomas W Blackwell tblackw at umich.edu
Sat Apr 5 00:55:38 CEST 2003

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:

>  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.:
> > data(USArrests)
> > biplot(princomp(USArrests),xlab="",ylab="")
> Error in biplot.default(t(t(scores[, choices])/lam), t(t(x$loadings[,  :
>         length of dimnames[1] not equal to array extent
> -------------------------------------------------
> 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
> -------------------------------------------------

More information about the R-help mailing list