@@ -34,9 +34,9 @@ png("h3_categorizing.png",
34
34
heatmap.2(mat_data ,
35
35
cellnote = mat_data , # same data set for cell labels
36
36
RowSideColors = c( # grouping row-variables into different
37
- rep(" green " , 3 ), # categories, Measurement 1-3: green
37
+ rep(" gray " , 3 ), # categories, Measurement 1-3: green
38
38
rep(" blue" , 3 ), # Measurement 4-6: blue
39
- rep(" red " , 4 )), # Measurement 7-10: red
39
+ rep(" black " , 4 )), # Measurement 7-10: red
40
40
main = " Categories" , # heat map title
41
41
notecol = " black" , # change font color of cell labels to black
42
42
density.info = " none" , # turns off density plot inside color legend
@@ -51,7 +51,7 @@ heatmap.2(mat_data,
51
51
par(lend = 1 ) # square line ends for the color legend
52
52
legend(" topright" , # location of the legend on the heatmap plot
53
53
legend = c(" category1" , " category2" , " category3" ), # category labels
54
- col = c(" green " , " blue" , " red " ), # color key
54
+ col = c(" gray " , " blue" , " black " ), # color key
55
55
lty = 1 , # line style
56
56
lwd = 10 , # line width
57
57
)
0 commit comments