How to customize heatmap axis labels

ComplexHeatmap is perfectly capable of plotting with correct axis labels, I suspect this happens when you load the csv, the names with spaces get autocorrected. Try with:

L <- read.csv("HeatmapLD.csv",row.names = 1, check.names = FALSE)