Hector Villalobos Ortiz wrote:
Hi everybody,
Excuse me for this silly question, but after searching the help archives
I'm still unable to find my way to read the source code of the "biplot"
function in R.
I have installed the mvbutils package, and tried:
fixr(biplot)
which only gives me:
function (x, ...)
UseMethod("biplot")
with no further details....
I'd like to read the code to see if it is possible to display arrows
only for some "significant" variables to avoid cluttering. Thank you in
advance.
That is the code for biplot()! biplot() is a generic function, and
biplot methods can be written to draw biplots of results produced by
different functions.
> methods(biplot)
[1] biplot.default* biplot.prcomp* biplot.princomp*
Shows us that currently there are 3 methods for biplot in my
environment. The * indicates that the code for those methods are not
visible to users directly.
getAnywhere(biplot.prcomp) is one way of viewing the code.
HTH
Gav
--
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
Gavin Simpson [T] +44 (0)20 7679 5522
ENSIS Research Fellow [F] +44 (0)20 7679 7565
ENSIS Ltd. & ECRC [E] gavin.simpsonATNOSPAMucl.ac.uk
UCL Department of Geography [W] http://www.ucl.ac.uk/~ucfagls/cv/
26 Bedford Way [W] http://www.ucl.ac.uk/~ucfagls/
London. WC1H 0AP.
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
______________________________________________
[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