[R] Modifying a built-in R function

2009-03-01 Thread japal
Hello, Something incredible (at least for me) has happen. Yesterday night I downloaded biplot.R to edit this function and add new features I wished. Namely I wanted to plot points belonging to different groups using different colors and symbols. I identified which part of the original code I had

Re: [R] Modifying a built-in R function

2009-03-02 Thread Uwe Ligges
japal wrote: Hello, Something incredible (at least for me) has happen. Yesterday night I downloaded biplot.R to edit this function and add new features I wished. Namely I wanted to plot points belonging to different groups using different colors and symbols. I identified which part of the orig

Re: [R] Modifying a built-in R function

2009-03-02 Thread japal
japal wrote: > > Hello, > > Something incredible (at least for me) has happen. Yesterday night I > downloaded biplot.R to edit this function and add new features I wished. > Namely I wanted to plot points belonging to different groups using > different colors and symbols. I identified which pa

Re: [R] Modifying a built-in R function

2009-03-02 Thread Prof Brian Ripley
I am not sure what you intended by biplotes <- function(x, ...) UseMethod("biplot") That does nothing different from biplot(). You need to call your modified functions 'biplotes.default' and 'biplotes.princomp' and call those via biplotes <- function(x, ...) UseMethod("biplotes") Anyth

Re: [R] Modifying a built-in R function

2009-03-02 Thread jcfaria
Alternatively, gives a looked in the package bpca and biplotGUI, both available on CRAN. HTH, JCFaria japal wrote: > > Hello, > > Something incredible (at least for me) has happen. Yesterday night I > downloaded biplot.R to edit this function and add new features I wished. > Namely I wanted

Re: [R] Modifying a built-in R function

2009-03-02 Thread japal
Ok, thank you for your guidelines. Additionally, I have had to put the biplotes.princomp function in the first place of the script, just after biplotes <- function(x, ...) UseMethod("biplotes"). By doing this it works, althrough I donĀ“t really know why. I hope to acquire higher skills in R program