I need to use and show stars for significances within my pheatmp
, I have utilised the approach below.
As you can see the stars reported by the figure cross the cell border. Is there a way to centre it within the cell?
test_vals <- matrix(rnorm(20), 5, 4)
test_labels <- matrix(1:20, 5, 4)
test_labels[test_labels<=10] <- "**"
pheatmap(test_vals, display_numbers = test_labels, fontsize_number=40, cellheight=20)