Skip to content
Prev 18182 / 398502 Next

Formatting the output of pairs()

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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._