Re: [R] Using a data frame to create a legend

2008-01-17 Thread Tom Snowden
>If I understand your question: > >x <- rnorm(100) >plot(x) >legend("topright", capture.output(t(t(summary(x) Thank you for your help, but I'm afraid that is not what I meant. As an example of what i am trying to say, imagine I had grouped a whole bunch of people into 4 age ranges and then

Re: [R] Using a data frame to create a legend

2008-01-16 Thread Henrique Dallazuanna
If I understand your question: x <- rnorm(100) plot(x) legend("topright", capture.output(t(t(summary(x) On 16/01/2008, Tom Snowden <[EMAIL PROTECTED]> wrote: > > Hi, > > I am currently in the process of translating a large script from S-Plus over > to R. It's going well so far and all the hi

[R] Using a data frame to create a legend

2008-01-16 Thread Tom Snowden
Hi, I am currently in the process of translating a large script from S-Plus over to R. It's going well so far and all the high level stuff is working fine, but as they say 'the devil is in the details' and my low level stuff is struggling. Specifically, I have enountered a problem translating fro