Skip to content

Commit c269c6f

Browse files
committed
category color update
1 parent c0400f4 commit c269c6f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

heatmaps/.h3_categorizing.R.swp

12 KB
Binary file not shown.

heatmaps/h3_categorizing.R

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ png("h3_categorizing.png",
3434
heatmap.2(mat_data,
3535
cellnote = mat_data, # same data set for cell labels
3636
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
3838
rep("blue", 3), # Measurement 4-6: blue
39-
rep("red", 4)), # Measurement 7-10: red
39+
rep("black", 4)), # Measurement 7-10: red
4040
main = "Categories", # heat map title
4141
notecol="black", # change font color of cell labels to black
4242
density.info="none", # turns off density plot inside color legend
@@ -51,7 +51,7 @@ heatmap.2(mat_data,
5151
par(lend = 1) # square line ends for the color legend
5252
legend("topright", # location of the legend on the heatmap plot
5353
legend = c("category1", "category2", "category3"), # category labels
54-
col = c("green", "blue", "red"), # color key
54+
col = c("gray", "blue", "black"), # color key
5555
lty = 1, # line style
5656
lwd = 10, # line width
5757
)

heatmaps/h3_categorizing.png

34 Bytes
Loading

0 commit comments

Comments
 (0)