I am not seeing an immediately evident way of doing that.

Bear in mind that pairs() is essentially a wrapper to automate the process of 
using par(mfrow = c(rows, columns)) and setting other graphical parameters such 
as margins, which sets up the grid of individual plots within the overall 
graphic.

You could fairly easily create your own function to do this, which then enables 
more flexible customization.

See ?par for more information on 'mfrow' and perhaps also ?layout which 
provides another means of creating a matrix of of plots.

HTH,

Marc

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

> That works, thanks. In addition, is there a way to specify the color and 
> symbol for some of the figures in the panel, but not all of them? Seems that 
> the color and symbol arguments apply to all the figures in the panel. 
> 
> Thanks,
> 
> -Jack
> 
> On Fri, Mar 12, 2010 at 11:16 AM, Marc Schwartz <marc_schwa...@me.com> wrote:
> 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
> 
> 


        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to