Is there a way to add color to the Hex bin smooth graph? I also want to make the gradient scale the value of P, not "count." Any ideas on how to help? Thank you!
A= 7, 47,10, 26, 6
B= 13, 6, 18, 20, 4
P= 0.495, 0.511, 0.533, 0.097, 0.499
bin<-hexbin(A,B)
smbin <- smooth.hexbin(bin)
plot(smbin, main = "smooth.hexbin(.)")