File:Paletteheatmap.png

From 太極
Jump to navigation Jump to search

Original file(534 × 615 pixels, file size: 12 KB, MIME type: image/png)

Summary

pal <- c("#E41A1C", "#377EB8", "#4DAF4A", "#984EA3", "#FF7F00")
pal <- matrix(pal, nr=2) # acknowledge a nice warning message
pal_matrix <- matrix(seq_along(pal), nr=nrow(pal), nc=ncol(pal))
heatmap(pal_matrix, col = pal, Rowv = NA, Colv = NA, scale = "none", 
         ylab = "", xlab = "", main = "", margins = c(5, 5))
# 2 rows, 3 columns with labeling on two axes

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current11:14, 10 May 2023Thumbnail for version as of 11:14, 10 May 2023534 × 615 (12 KB)Brb (talk | contribs)<syntaxhighlight lang='rsplus'> pal <- c("#E41A1C", "#377EB8", "#4DAF4A", "#984EA3", "#FF7F00") pal <- matrix(pal, nr=2) # acknowledge a nice warning message pal_matrix <- matrix(seq_along(pal), nr=nrow(pal), nc=ncol(pal)) heatmap(pal_matrix, col = pal, Rowv = NA, Colv = NA, scale = "none", ylab = "", xlab = "", main = "", margins = c(5, 5)) # 2 rows, 3 columns with labeling on two axes </syntaxhighlight>

The following page uses this file: