Hi I want to know how to color a baseplot of array data for different array levels (dimnames 1, 2 and 3)
x <- rnorm(1000); dim(x) <- c(10,10,10)
dimnames(x) = list(c("1", "2", "3", "4", "5", "6", "7", "8", "9", "10"),
c("a", "b", "c", "d", "e", "f", "g", "h", "i", "j"),
c("A", "B", "C", "D", "E", "F", "G", "H", "I", "J"))
plot(x, col=as.factor(dimnames(x)[[3]]))
didn't give me the wanted results as...
plot(x[1:100], col=as.factor(dimnames(x)[[3]]))
didn't give me one color for the first 100 numbers
I want to know how I can color the base plot by the different sets over the dimensions in baseplot.



