Re: [R] some pairs() questions

From: Pieter Provoost <pieterprovoost_at_gmail.com>
Date: Fri 06 May 2005 - 04:06:32 EST

I'm sure it's possible to display the variable names by making a small change to the code. Someone did this last week but I can't contact this person now to ask how. I tried this

vars <- names(Rdata)
pairs(Rdata, labels=vars,...)

but that doesn't work (formal argument "labels" matched by multiple actual arguments). Unfortunately I don't have the time right now to get to know new packages and write new scripts...

Thanks
Pieter

> (Lazy answer, not checking your code in detail)
>
> Try using splom() in the lattice package, as it gives more extensive
control
> to do the sorts of things you seem to want.
>
> -- Bert Gunter
> Genentech Non-Clinical Statistics
> South San Francisco, CA
>
> "The business of the statistician is to catalyze the scientific learning
> process." - George E. P. Box
>
>
>
> > -----Original Message-----
> > From: r-help-bounces@stat.math.ethz.ch
> > [mailto:r-help-bounces@stat.math.ethz.ch] On Behalf Of Pieter Provoost
> > Sent: Thursday, May 05, 2005 8:43 AM
> > To: r-help@stat.math.ethz.ch
> > Subject: [R] some pairs() questions
> >
> > I have a few problems with pairs(). I want to add the
> > variables names to the
> > plot, but I don't know how. I tried different things with the labels
> > argument but nothing worked out. This is the code:
> >
> > read.table("bay1.bay",header=T)->Rdata
> > (histogram part skipped)
> > pairs(Rdata,
> > pch='.',diag.panel=panel.hist,labels=NULL,gap=0,xaxt="n",yaxt=
> "n",upper.pane
> > l=NULL)
> >
> > The other problem is that I want to "highlight" one or more
> > of the records
> > of Rdata (give it another symbol and another color). What's
> > the easiest way
> > to do this? The record to be highlighted should be selected
> > based on the
> > value of one of the variables (smaller than 2.8 is this case).
> >
> > Many thanks in advance,
> > Pieter Provoost
> >



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri May 06 04:16:44 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:36 EST