Learn R Programming

multilevelcoda (version 1.3.1)

plot.substitution: Substitution Plot

Description

Make a plot of substitution model results.

Usage

# S3 method for substitution
plot(x, to, ref, level, ...)

Value

A ggplot graph object showing the estimated difference in outcome when each pair of compositional variables are substituted for a specific time.

Arguments

x

A substitution class object.

to

A character value or vector specifying the names of the compositional parts that were reallocated to in the model.

ref

A character value of (("grandmean" or "clustermean" or "users"),

level

A character value of ("between", "within"), or "aggregate").

...

Further components to the plot, followed by a plus sign (+).