xfim/ggmcmc — pull request #37 by akrawitz (2014-05-28 05:59:52+00:00)
Title: Fix bug causing order of parameters to get changed

I believe the goal here is to remove the unused levels of the factor. droplevels(D.sub$Parameter) should be used for this, because the use of factor(as.character(D.sub$Parameter)) was causing the existing ordering of the levels of Parameter to be lost and to be replaced with a purely alphabetical ordering. This was leading to "x[10]" coming before "x[2]" for example. As a result, in parameters were in the wrong order in many of the ggs_ plotting functions if the "family" option was used.