This function accepts a FCnet model - such as one retuned by FCnetLOO() - and returns a plot for either the coefficients or the model's prediction.

plotFCnet(
  model,
  output = c("predictions", "coefficients"),
  plot_labels = T,
  subset_coeffs = NULL
)

Arguments

model

The FCnet model to depict.

output

What to depict: model's predictions or models' coefficients. Coefficients are assumed to arise from nested models, thus they will depicted with - more or less pronounced - variability with the geometries chosen with the style parameter.

plot_labels

if TRUE annotates the row names of x as predictions.

subset_coeffs

To avoid padding, sometimes the user may want to subset the coefficients to report. This can be done by passing a vector to this parameter. Note that the intercept counts as a coefficient (of 0) even if omitted in the call.

Value

A ggplot2 object which can be customized further.