Internal function to prepare data for heterogeneity plots
make_heterogeneity_data(x, axis, term)
Object returned by metagam
.
Character specifying which variable to plot. Defaults to NULL
; if x
was
fitted with a single term, the explanatory variable corresponding to this term
is selected.
Character specifying which smooth term to plot. Defaults to NULL
; if x
was fitted with a single term, this one is taken.
tibble/data.frame