| autoplot.metafrontier | R Documentation |
Creates diagnostic and summary plots for metafrontier objects using ggplot2.
## S3 method for class 'metafrontier'
autoplot(
object,
which = c("tgr", "efficiency", "decomposition", "frontier"),
...
)
object |
a |
which |
character. Which plot to produce:
|
... |
additional arguments (currently unused). |
A ggplot object.
if (requireNamespace("ggplot2", quietly = TRUE)) {
sim <- simulate_metafrontier(n_groups = 2, n_per_group = 50, seed = 42)
fit <- metafrontier(log_y ~ log_x1 + log_x2, data = sim$data,
group = "group")
ggplot2::autoplot(fit, which = "tgr")
ggplot2::autoplot(fit, which = "decomposition")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.