beta_heatmap: β's Heatmap

View source: R/beta_heatmap.R

beta_heatmapR Documentation

β's Heatmap

Description

Classical heatmap made with the beta values of each model in the "LassoLoop" object. This plot shows in a fast and intuitive way the direction of coefficients for each variable. Each heatmap row denotes one LassoLoop model and each column denotes one selected variable.

Usage

beta_heatmap(
  object,
  scale = TRUE,
  scale_by = "model",
  low = "steelblue",
  high = "orange"
)

Arguments

object

A LassoLoop object.

scale

Logical indicating if the resultant heatmap will be scaled or not. Default is TRUE.

scale_by

Character that indicates for which variable the resultant heatmap will be scaled. Options are "model" and "variable".

low

Colour for the low end of the gradient. Lower beta values will be represented with this value.

high

Colour for the high end of the gradient. Highest beta values will be represented with this value.

Value

A ggplot2 object.

Author(s)

Pol Castellano-Escuder


pcastellanoescuder/lassoloops documentation built on July 25, 2022, 12:42 p.m.