plot.metafrontier: Plot a Metafrontier Object

View source: R/plot.R

plot.metafrontierR Documentation

Plot a Metafrontier Object

Description

Produces diagnostic and summary plots for a fitted metafrontier model.

Usage

## S3 method for class 'metafrontier'
plot(x, which = c("tgr", "efficiency", "decomposition", "frontier"), ...)

Arguments

x

a "metafrontier" object.

which

character. Type of plot to produce: "tgr" (default) for TGR distributions by group, "efficiency" for TE* vs TE scatter coloured by group, "decomposition" for side-by-side boxplots of TE, TGR, and TE* by group, or "frontier" for group frontier vs metafrontier (only for single-input SFA models).

...

additional graphical parameters passed to base plotting functions.

Value

Invisibly returns x.

Examples

set.seed(42)
sim <- simulate_metafrontier(n_groups = 2, n_per_group = 100)
fit <- metafrontier(log_y ~ log_x1 + log_x2,
                    data = sim$data, group = "group")
plot(fit, which = "tgr")
plot(fit, which = "decomposition")


metafrontier documentation built on Aug. 19, 2026, 5:08 p.m.