I need to make a heatmap with only one column of data, I get error message saying "'x' must have at least 2 rows and 2 columns".
How can I make heatmap in R with just one column of data?
This is my code:
`library(gplots)
getwd()
x <- read.csv("practise.csv", check.names = FALSE)
y <- data.matrix(x$utilisation)
?heatmap.2
?colorRampPalette
yb <- colorRampPalette((c("green4","grey","blue")))
heatmap.2(y, col=yb, trace = "none", margins = c(10,12), cexRow=0.7, Colv=
FALSE, Rowv = FALSE, key = FALSE)
`