[R] color2D.matplot axis names

From: MeMooMeM <mbelgin_at_gmail.com>
Date: Tue, 17 Jun 2008 14:55:06 -0700 (PDT)

Hi,

I finally came up with a nice colored matrixplot, using the color2D.matplot function of the plotrix package. But I can't assign xtics and ytics to this plot. I made sure that the matrix has correct colnames() and rownames().

Here's what I do:

a=matrix(1:16, 4, 4)
colnames(a) <- c("X1", "X2", "X3", X4)
rownames(a) <- c("Y1", "Y2", "Y3", "Y4")
color2D.matplot(a,c(0,1),c(0,0),c(0,0),show.legend=TRUE, show.values=TRUE)

As you can see from the output of these commands, the ticks are numbers, but not the names.

Thank you so much in advance!

-- 
View this message in context: http://www.nabble.com/color2D.matplot-axis-names-tp17948688p17948688.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 17 Jun 2008 - 22:32:04 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 18 Jun 2008 - 12:30:44 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive