updated filled.contour.edit to work with new R version according to Chris' tip