View Single Post
Old 04-09-2014, 03:30 AM   #11
jp.
Senior Member
 
Location: NikoNarita.jp

Join Date: Jul 2013
Posts: 142
Default

hi all
Can somebody expain me to add five different colors in heatmap.2 (gplots). for example:
I have nine different values (-1 -0.8 -0.5 -0.2 0 0.2 0.5 0.8 1) and I want nine colors of my choice (blue, red, green, pin, white, black, brown, grey, orange); and my values are:
details sample1 sample2 sample3 sample4 sample5
ab -1 1 0.8 0.5 0.2
abc -0.8 -1 1 0.8 0.5
bc -0.5 -0.8 -1 1 0.8
cd -0.2 -0.5 -0.8 -1 1
cde 0 -0.2 -0.5 -0.8 -1
de 0.2 0 -0.2 -0.5 -0.8
def 0.5 0.2 0 -0.2 -0.5
ef 0.8 0.5 0.2 0 -0.2
efg 1 0.8 0.5 0.2 0


Can somebody expert tell me how can I do this?
thank you
jp.
jp. is offline   Reply With Quote