Displaying 1 result from an estimated 1 matches for "my_heatmap".
2011 Mar 28
2
How to save heatmap as image or pdf
Hello Everyone,
I am using R for creating heatmap from a square matrix. Below is my script
to do so
my_map <- read.csv("Desktop/input.csv", sep=",")
my_matrix <- data.matrix(my_map)
my_heatmap <- heatmap(my_matrix, Rowv=NA, Colv=NA, col = cm.colors(256),
scale="column", margins=c(5,10))
I get a beautiful plot as output, but I could not save this plot as an
image. I would like it to be in either jpg/png/svg/bitmap/ or PDF format.
Can some one advice me how to write this out...