I am trying to replicate the codes at page 8 from the R tutorial (\'localgauss\', https://www.jstatsoft.org/article/view/v056i12), in order to obtain the Figures of page 9. I ru