Dear Sarah,
Thank you a lot,
It does exactly what I need.
By the way, I tried doing what Prof. Ripley suggested I just was not able to
get it right - I am pretty new to this after all.
Thank again,
Herwig
Sarah Goslee wrote:
>
> You didn't do what Prof. Ripley suggested - adding a ... argumen
You didn't do what Prof. Ripley suggested - adding a ... argument.
Here's a crude version of what you want; I'm sure there's a more elegant
solution for passing the needed data to the panel function.
panel.cor <- function(x, y, digits=2, prefix="", splitvar, col.cor, ...)
{
usr <- par("usr");
Dear Prof. Ripley,
thanks for your reply.
Unfortunately I still was not able to solve the problem.
I tried it with the Iris data and you can find the code below:
> panel.cor <- function(x, y, digits=2, prefix="", cex.cor)
{
usr <- par("usr"); on.exit(par(usr))
par(usr = c(0, 1, 0, 1)
Your panel function should have a ... argument: see the help page for
pairs(). Since your example is not 'self-contained' I cannot test this
out
On Sun, 4 Jan 2009, herwig wrote:
Hi there,
I am just starting in R and this might be a very basic question.
I applied one on the examples o
Aydemir, Zava (FID) wrote:
> Hi
>
> what does this mean when i get above error? When I call function foo(),
> specifying parameters a and b as below
>
> a<-5
> b<-6
>
>
>>y <- foo(a,b)
>>Error in foo(a, b) : unused argument(s) (6)
>
Hi Zava,
As the other Jim noted, it looks like foo() is de
What is 'foo'? It appears that foo does not take 2 arguments:
> foo <- function(x) x
> foo(1,2)
Error in foo(1, 2) : unused argument(s) (2)
>
On 10/18/07, Aydemir, Zava (FID) <[EMAIL PROTECTED]> wrote:
> Hi
>
> what does this mean when i get above error? When I call function foo(),
> specifying
6 matches
Mail list logo