[R] how to plot only the upper triangle using the pairs function?

Marc Schwartz marc_schwartz at me.com
Fri Mar 12 17:16:39 CET 2010


On Mar 12, 2010, at 10:09 AM, Jack Luo wrote:

> Hi,
> 
> I am trying to use function pairs to plot the scatterplot, but I only want
> to keep the upper triangle, what's the argument to do this?
> 
> Thanks,
> 
> -Jack

Try setting the 'lower.panel' argument to NULL.

Compare:

  pairs(USJudgeRatings)

to:

  pairs(USJudgeRatings, lower.panel = NULL)

HTH,

Marc Schwartz



More information about the R-help mailing list