Re: [R] plot matrix of characters

2011-12-14 Thread R. Michael Weylandt
Forgot to cc the list. M On Wed, Dec 14, 2011 at 12:19 PM, R. Michael Weylandt wrote: > It's a bit of a hack-job, but this might get you started: > > d <- structure(c("A", "A", "A", "B", "A", "A", "C", "C", "A", "D", > "C", "C"), .Dim = 3:4) > > plot(0, type = "n", xlim = c(0,ncol(d)), ylim = c(

Re: [R] plot matrix of characters

2011-12-14 Thread R. Michael Weylandt
I may be confused, but this seems ill-defined since, in the example, the color corresponds to a numerical value: characters are only there as labels. Do you intend to map the characters onto some numerical spectrum? If so, how? As a side note, one of the best places to get visualization ideas in m

[R] plot matrix of characters

2011-12-14 Thread Ana
Hi, I am looking for options to plot the following type of matrices: "A" "B" "C" "D" "A" "A" "C" "C" "A" "A" "A" "C" as a image like this: http://www.phaget4.org/R/image002.jpg __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/