x <- matrix(sample(c(FALSE,TRUE),100,rep=TRUE),ncol=10)
clmplot(x, order=TRUE, axes=TRUE)
clmplot(x, col=rep(c(1,2),each=5))
clmplot(x, col=rep(c("red","blue"),each=5))
clmplot(x, col=rep(c("red","blue"),each=5), col.bycol=TRUE)
if (FALSE) {
example("rockCluster")
### continue example (see rockCluster)
col <- Votes$Class # color by party
levels(col) <- c("red","blue")
op <- par(mfrow=c(1,2), pty="s")
clmplot(x, order=TRUE, col=as.character(col), main="Parties")
col <- rf$cl # color by cluster
levels(col) <- c("blue","red","green", "black") # map NA to black
clmplot(x, order=TRUE, col=as.character(col), main="Clusters")
par(op)
}
Run the code above in your browser using DataLab