Lambda plot for tracing t-staitics across different values of lambda (in ggplot2)
Arguments
model
Model of class "lm" or "glm"
lambda
sequence of lambda values to consider for plot. Default is seq(-2,2,0.1)
color_palette
A character string indicating the color map option to use.
Eight options are available: "viridis","cividis","magma","inferno","plasma","rocket","mako","turbo". Default is 'viridis'
alpha
The alpha transparency, a number in [0,1]
direction
Sets the order of colors in the scale. If 1, the default, colors are ordered from darkest to lightest. If -1, the order of colors is reversed
showplot
logical indicating to show the main effect plots. If false, a list of tibbles is returned used to obtain the main effects for each factor. Default is TRUE