In this example, I have an image with colors and I wonder if we can add a legend of colors. for example : points with z
in [8:10]
have color red and so on.
x=runif(500,0,5)
y=runif(500,0,5)
z=floor(runif(500, 1,10))
xyz=data.frame(x,y,z)
library(MBA)
mba.int <- mba.surf(xyz, 300, 300, extend=T)$xyz.est
image(mba.int, xaxs="i", yaxs="i")
Thank you.