[R] Formatting the output of pairs()
ripley@stats.ox.ac.uk
ripley at stats.ox.ac.uk
Fri Mar 22 12:53:57 CET 2002
On Fri, 22 Mar 2002, Hadley Wickham wrote:
> 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)
set argument panel. Don't known what you mean by a `point' (that would be
invisible, but perhaps pch=20 or pch="."?
> * remove the gap between each scatter plot
set argument gap.
> * make the frame around each scatter plot pale grey
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list