Learn R Programming

linea (version 0.1.1)

decomp_chart: decomp_chart

Description

Variable Decomposition Bar Chart

Usage

decomp_chart(
  model = NULL,
  decomp_list = NULL,
  pool = NULL,
  colors = color_palette(),
  variable_decomp = FALSE,
  verbose = FALSE
)

Value

a plotly bar chart of the model's decomposition

Arguments

model

Model object

decomp_list

list object generated by the decomping function.

pool

string specifying a group within the pool column to be filtered

colors

character vector of colors in hexadecimal notation

variable_decomp

boolean specifying whether the chart should be based on the variable_decomp or the category_decomp from the decomping function.

verbose

A boolean to specify whether to print warnings

Details

Plot the variable, or category, decomposition as stacked bars over the id variable which can be supplied to the decomping function.