[R] Adding dimnames to image()

From: Markus Preisetanz <Markus.Preisetanz_at_clientvela.com>
Date: Mon 13 Feb 2006 - 22:24:38 EST


Dear Colleagues,  

does anybody know how to add dimnames to an image. Right now I'm using  

image(as.matrix(df3), col=brewer.pal(9,"Blues"))  

where df3 is a data.frame.

dimnames(as.matrix(df3)) delivers  

[[1]]

 [1] "RFM_A1" "RFM_A2" "RFM_A4" "RFM_A5" "RFM_A7" "RFM_B3" "RFM_B6" "RFM_B7" "RFM_B8" "RFM_B9" "RFM_C2" "RFM_C5" "RFM_C7"
[14] "RFM_D5" "RFM_D7" "RFM_D8" "RFM_A3" "RFM_A6" "RFM_B1" "RFM_B2" "RFM_B4" "RFM_B5" "RFM_C1" "RFM_C3" "RFM_C4" "RFM_C6"

[27] "RFM_C8" "RFM_C9" "RFM_D1" "RFM_D2" "RFM_D3" "RFM_D4" "RFM_D6" "RFM_D9"
 
[[2]]

[1] "Clus1" "Clus2" "Clus3" "Clus4" "Clus5" "Clus6" "Clus7"
 

The entries in the cells of the matrix are numeric.  

All I get are axises with decimal numbers ranging from 0 to 1.  

Thank you, sincerely


Markus Preisetanz

Consultant  

Client Vela GmbH

Albert-Roßhaupter-Str. 32

81369 München

fon: +49 (0) 89 742 17-113

fax: +49 (0) 89 742 17-150

mailto:markus.preisetanz@clientvela.com <mailto:markus.preisetanz@clientvela.com>

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged infor...{{dropped}}



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Mon Feb 13 22:30:23 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:42:29 EST