I have a heatmap drawing a dataframe that has 3 columns and 100 rows. X and Y axes are representing X and Y coordinates. When I create the map, it shows every location and becomes unreadable.
Both axis range from 0-100. I would like both axis to just go 0,10,20,30,40,50,60,70,80,90,100. Can anyone help me clean this up? Thanks.
ggplot( data = CombinedDF, mapping = aes( x = factor(allPoints.xLocs), y = factor(allPoints.yLocs) ) ) + 
  geom_tile( aes( fill = sum_patch ),  colour = "white") + labs( x = "X-Coordinate", y = "Y-Coordinate") +
  theme_bw() + theme(axis.text.x = element_text(angle = 45, hjust = 1))
Here is the sample of the input dataframe "CombinedDF"
  allPoints.xLocs allPoints.yLocs sum_patch
1   74.106128071    62.2365805  13
2   70.786698116    58.8928561  13
3   65.543694422    33.8426416  3
4   8.647094783     50.1071865  2
5   95.822909172    11.3294181  4
6   91.324434988    42.4157078  5
7   96.444815141    68.6108005  13
8   13.105758978    83.1488258  7
9   92.958515161    74.3948395  13
10  76.149455458    98.8090307  4
When I remove "factor" I get this (axis are correct but no data?):


 
     
    

