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:> 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)Use the pch argument in pairs()> * remove the gap between each scatter plotset gap = 0 in the pairs() command.> * make the frame around each scatter plot pale greyHmm...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:> 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 plotset argument gap.> * make the frame around each scatter plot pale greyIn ... 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._