Recent Posts

Adding Png Images And Legends To Plots

1 minute read

It can be a pain to add legend to plots, so here is one possible workaround that may help. All credit for this idea goes to Michael Scroggie, whose code (wh...

Accessing Data In Cached Knitr Chunks

less than 1 minute read

Sometimes you’ve run your knitr document, and you’d just like to examine some of the cached data. It’s not obvious how to do that, and this probably isn’t r...

Sparse B Spline Basis Matrix In R

1 minute read

This is slightly old news now, but as of R 2.15.1, the functions spline.des and splineDesign which construct design matrices for sets of b-spline basis func...

Useful Rcpp Links And Resources

less than 1 minute read

Recently I’ve working with Rcpp in order to make MCMC run more quickly, and it is fantastic. As a native R programmer, much of the effort has been in gettin...