Thanks Bill and Deepayan for the panel function idea.
Somehow I've always associated the panel
functions with lattice -- not sure why, but thanks for
pointing out their more universal applicability.
Anne
On Thu, 7 Apr 2005, Deepayan Sarkar wrote:
DS On Thursday 07 April 2005 17:51, Anne York
On Thursday 07 April 2005 17:51, Anne York wrote:
The following command produces red axis line in a pairs
plot:
pairs(iris[1:4], main = Anderson's Iris Data -- 3 species,
pch = +, col = c(red, green3, blue)[unclass(iris$Species)])
Trying to fool pairs in the following way produces the
Hi Anne,
Here's one suggestion, use a simple panel function:
cols - c(red, green3, blue)
with(iris,
pairs(iris[, -5], main = Andersons Iris Data - 3 species,
panel = function(x, y, ...)
points(x, y, pch = (2:4)[Species], col = cols[Species], ...)
))
Bill Venables