Jack Luo
2010-Mar-12 16:09 UTC
[R] how to plot only the upper triangle using the pairs function?
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 [[alternative HTML version deleted]]
Marc Schwartz
2010-Mar-12 16:16 UTC
[R] how to plot only the upper triangle using the pairs function?
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, > > -JackTry setting the 'lower.panel' argument to NULL. Compare: pairs(USJudgeRatings) to: pairs(USJudgeRatings, lower.panel = NULL) HTH, Marc Schwartz
Steve Lianoglou
2010-Mar-12 16:18 UTC
[R] how to plot only the upper triangle using the pairs function?
Hi, On Fri, Mar 12, 2010 at 11:09 AM, Jack Luo <jluo.rhelp at gmail.com> 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?I don't really understand what you're trying to ask, but does upper.tri function help? R> ?upper.tri -steve -- Steve Lianoglou Graduate Student: Computational Systems Biology | Memorial Sloan-Kettering Cancer Center | Weill Medical College of Cornell University Contact Info: http://cbio.mskcc.org/~lianos/contact
Greg Snow
2010-Mar-12 16:58 UTC
[R] how to plot only the upper triangle using the pairs function?
Is this what you want?> pairs(iris[,-5], lower.panel=NULL)Also look at the pairs2 function in the TeachingDemos package for a way to plot one set of variables against another set. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.snow at imail.org 801.408.8111> -----Original Message----- > From: r-help-bounces at r-project.org [mailto:r-help-bounces at r- > project.org] On Behalf Of Jack Luo > Sent: Friday, March 12, 2010 9:10 AM > To: r-help at r-project.org > Subject: [R] how to plot only the upper triangle using the pairs > function? > > 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 > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at 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.