plotting a heatMap with R – package akima

Home Forums Quantitative Methods and Programming plotting a heatMap with R – package akima

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #21203
    
    library(akima) 
    library(fields)
    mhu = aggregate(hu$ret, by=list(hu$sGrow1, hu$sGrow2), FUN=mean)
    names(mhu)=c("ret", "sGrow1", "sGrow2")
    s <- interp(mhu$ret,mhu$sGrow1,mhu$sGrow2)
    image.plot(s)
    
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.