beta_heatmap | R Documentation |
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.
beta_heatmap( object, scale = TRUE, scale_by = "model", low = "steelblue", high = "orange" )
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. |
A ggplot2 object.
Pol Castellano-Escuder
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.