[R] How do i read the source code of "biplot"?

R. Michael Weylandt michael.weylandt at gmail.com
Tue Apr 24 21:36:15 CEST 2012


Please....... read the help and use the function properly.....

E.g.,

library(Matrix) # Since you haven't said what package you're using

show # Is a standard generic
showMethods("show") # Lots of methods available

getMethod("show", "dsyMatrix") # Get a specific method for that generic

# Turns out that in turn calls prMatrix which isn't exported so you need

getAnywhere(prMatrix)

Michael Weylandt

On Tue, Apr 24, 2012 at 3:31 PM, Michael <comtech.usa at gmail.com> wrote:
> It doesnot give any source code...
>
> I want to reduce the number of the red arrows...to 1 or 2 ...
>
> i.e. I want to see the major and the 2nd major axis direction of the PCA
> ellipsoidal
>
>>
>
> getMethod("biplot")
>
> Method Definition (Class "derivedDefaultMethod"):
>
> function (x, ...)
>
> UseMethod("biplot")
>
> <bytecode: 0x15e17d00>
>
> <environment: namespace:stats>
>
> Signatures:
>
> x
>
> target "ANY"
>
> defined "ANY"
>
>>
>
>
>
> On Tue, Apr 24, 2012 at 1:58 PM, R. Michael Weylandt
> <michael.weylandt at gmail.com> wrote:
>>
>> You have another package using an S4 for biplot -- vanilla R doesn't
>> seem to set that generic...
>>
>> Anyways, the function you need is getMethod()
>>
>> Michael
>>
>> On Tue, Apr 24, 2012 at 2:44 PM, Michael <comtech.usa at gmail.com> wrote:
>> >> biplot
>> >
>> > standardGeneric for "biplot" defined from package "stats"
>> >
>> > function (x, ...)
>> >
>> > standardGeneric("biplot")
>> >
>> > <environment: 0x0d4444d8>
>> >
>> > Methods may be defined for arguments: x
>> >
>> > Use showMethods("biplot") for currently available ones.
>> >
>> >>
>> >
>> >>
>> >
>> >> showMethods("biplot")
>> >
>> > Function: biplot (package stats)
>> >
>> > x="ANY"
>> >
>> > x="character"
>> >
>> > (inherited from: x="ANY")
>> >
>> > x="Pca"
>> >
>> >> biplot(resRobPCA)
>> >
>> > But how do I get the source code of "biplot"?
>> >
>> > Thank you!
>> >
>> >        [[alternative HTML version deleted]]
>> >
>> > ______________________________________________
>> > R-help at r-project.org 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.
>
>



More information about the R-help mailing list