I use ggplot and geom_tile to generate heatmaps. And I want to insert some weak lines between the cells.
For instance:
My ggplot geom_tile heatmap:
library(ggplot2) library(reshape2) data("iris") x = melt(cor(iris[,1:4])) ggplot(data=x,aes(Var1,Var2,fill=value)) + geom_tile() # No line between the cells
What I want (from d3heatmap package in R)
library(d3heatmap) data("iris") x = cor(iris[,1:4]) d3heatmap(cor(iris[,1:4]),Rowv = F,Colv = F)
(Sorry, you canβt leave photos) Thank you!
source share