Helping with heatmap
0
0
Entering edit mode
8.2 years ago
M K ▴ 660

I have a CSV files contains the regression coefficients with their p-values for 5 variables and I want to plot a heatmap in R for those variables and adding the p-values for each variable in my heatmap.I got the heatmap with the coefficients values on it but I don't know how to add the p-values on the same heatmap for each cell.

Here is the code lines that I used to create the heatmap

heat_map = read.csv("data.csv",header=TRUE)
heat_map <- data.matrix(heat_map)

heatmap.2(heat_map, trace="none",margins=c(8,10),keysize=1,Rowv=NULL,Colv=NULL, scale="none",col=greenred(75) ,cexRow=1.5,cexCol=1.5,cellnote = heat_map,notecol = "white",density.info = "none",main = "main")

R • 1.8k views
ADD COMMENT

Login before adding your answer.

Traffic: 1677 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6