Skip to content

gratia version 0.5.1 now on CRAN

Compare
Choose a tag to compare
@gavinsimpson gavinsimpson released this 24 Jan 20:51

This release was prompted by an issue with an argument naming choice in the new smooth_estimates() function. Some additional functionality was completed prior to realising I needed to release 0.5.1,

User visible changes

  • The newdata argument to smooth_estimates() has been changed to data as
    was originally intended.

New features

  • smooth_estimates() can now handle

    • bivariate and multivariate thinplate regression spline smooths, e.g.
      s(x, z, a),
    • tensor product smooths (te(), t2(), & ti()), e.g. te(x, z, a)
    • factor smooth interactions, e.g. s(x, f, bs = "fs")
    • random effect smooths, e.g. s(f, bs = "re")
  • penalty() provides a tidy representation of the penalty matrices of
    smooths. The tidy representation is most suitable for plotting with
    ggplot().

    A draw() method is provided, which represents the penalty matrix as a
    heatmap.