Enter the body of text here
Code should be placed in three backticks as shown below
library(gplots)
x <- genes
y <- data.matrix(genes)
y
heatmap.2(genes)
?heatmap.2
heatmap.2(y, main="Sample", trace= "none", margins= c(23,24))
yb <- colorRampPalette(c("yellow", "white", "blue"))
heatmap.2(y, color=yb, main="Sample", trace= "none", margins= c(23,24), cexRow = 0.5, Rowv = FALSE, Colv = FALSE, key)
# include your problematic code here with any corresponding output
# please also include the results of running the following in an R session
sessionInfo( )
Error in .External.graphics(C_layout, num.rows, num.cols, mat, as.integer(num.figures), :
invalid graphics state
In addition: Warning messages:
1: In heatmap.2(y, color = yb, main = "Sample", trace = "none", margins = c(23, :
Discrepancy: Rowv is FALSE, while dendrogram is both'. Omitting row dendogram.
2: In heatmap.2(y, color = yb, main = "Sample", trace = "none", margins = c(23, :
Discrepancy: Colv is FALSE, while dendrogram is
column'. Omitting column dendogram.
heatmap.2(y, main="Sample", trace= "none", margins= c(23,24))
Error in .External.graphics(C_layout, num.rows, num.cols, mat, as.integer(num.figures), : invalid graphics state