Skip to content

Formatting the output of pairs()

3 messages · Hadley Wickham, Roger D. Peng, Brian Ripley

#
Would anyone be able to give me some ideas on how to go about changing
the output of pairs()?

What I want to do is :
 * plot each value as a point (instead of those hollow circles)
 * remove the gap between each scatter plot
 * make the frame around each scatter plot pale grey

Thanks for you time,

Hadley

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
On Fri, 22 Mar 2002, Hadley Wickham wrote:

            
Use the pch argument in pairs()
set gap = 0 in the pairs() command.
Hmm...not sure.

-roger
_______________________________
UCLA Department of Statistics
rpeng at stat.ucla.edu
http://www.stat.ucla.edu/~rpeng


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
On Fri, 22 Mar 2002, Hadley Wickham wrote:

            
set argument panel. Don't known what you mean by a `point' (that would be
invisible, but perhaps pch=20 or pch="."?
set argument gap.
In ... set bty="n", and in your panel function include box(col="grey80").

E.g.

data(iris[, 1:4])
pairs(iris[, 1:4]), gap=0,
      panel=function(x,y, ...) {box(col="grey80"); points(x, y, pch=20)},
      bty="n", diag.panel= function(x,y, ...) box(col="grey80"))

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._