This function plots dental wear data using ggplot and can depict the confidence or prediction intervals.

BAM.plot(object, data, interval = interval, level = level)

Arguments

object

object of type 'lm' or 'earth'.

data

Data frame containing the data used to create the plot.

interval

The type of age interval used. Can be either "prediction" or "confidence" intervals.

level

Determines the level of confidence or prediction intervals.

Value

A plot of the entered data.