Learn R Programming

metagam (version 0.2.0)

make_heterogeneity_data: Prepare heterogeneity data

Description

Internal function to prepare data for heterogeneity plots

Usage

make_heterogeneity_data(x, axis, term)

Arguments

x

Object returned by metagam.

axis

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.

term

Character specifying which smooth term to plot. Defaults to NULL; if x was fitted with a single term, this one is taken.

Value

tibble/data.frame