I have a dataset that I use to create a heat map. One of the problems is that some cells have very few members in them and may have outliers that are not averaged by other members.
To this end, I would like to include in the cell (the graph in the center of the cells) how many examples really are in the cell.
Below is my code for heat map:
library(fields) library(akima) x1 <- round(runif(20) * 100,0) y1 <- round(runif(20) * 100,0) z1 <- round(runif(20) * 100,0) s <- interp(x1,y1,z1, xo = seq(0,100,20) ,yo = seq(0,100,20) ) image.plot(s)
Any suggestions?
source share