[R] How to color a splom?

Marius Hofert m_hofert at web.de
Thu Jan 14 11:11:17 CET 2010


Dear R-Users,

I would like to color the data in a splom according to their position in the matrix, i.e. I would like to have all data shown in the upper left corner to be blue, all entries below that to be black, and the data to the right to be all red. I tried to color the "splom" with the following call...

splom(~iris[1:3],col=c("black","blue","red"))

...however, the colors are mixed. I also constructed a matrix containing the required colors, but that also did not work. How do I color the splom according to the location in the matrix as mentioned above?

Cheers,

Marius 



More information about the R-help mailing list