added a helper function in the plotting methods plotFEsim, plotREsim to enforce correct inputs
added a facet option in plotREsim. I see you could "hack" to this solution previously as in your example (via (p2 <- plotREsim(REsim(fm1)[REsim(fm1)$term=="Days",]))). But this was not intuitive to me (and required understanding the output data structure of REsim, so I made what I think is more intuitive... although there are other options to simplify this with the same intent.
Coverage increased (+0.5%) to 75.157% when pulling 390e959695d9b3813ad351aa149cd80178bfd99b on alexWhitworth:master into 11adab7da211b68cd8f33f046b1402a1d30fdcef on jknowles:master.
Two changes (and associated tests)
plotFEsim
,plotREsim
to enforce correct inputsfacet
option inplotREsim
. I see you could "hack" to this solution previously as in your example (via(p2 <- plotREsim(REsim(fm1)[REsim(fm1)$term=="Days",]))
). But this was not intuitive to me (and required understanding the output data structure ofREsim
, so I made what I think is more intuitive... although there are other options to simplify this with the same intent.