Skip to contents

A short description...

Usage

kda_importance_barPlot(
  model,
  importance_obj,
  color = yougov_colors[["Red 1"]],
  label_size = 3
)

Arguments

model

A model object.

importance_obj

An importance object, i.e., the output from kda_importance_sumOfCoefficients(), kda_importance_domir(), or kda_importance_jrw().

color

Optional. A single string specifying the bar color.

label_size

Optional. A numeric value specifying the size of the labels on the bars. Defaults to 3.

Value

A list with elements d (a data frame of plot data) and p (a ggplot2 object).