lambda_plot: Lambda Plot: Trace of t-statistics

View source: R/lambda_plot.R

lambda_plotR Documentation

Lambda Plot: Trace of t-statistics

Description

Lambda Plot: Trace of t-statistics

Usage

lambda_plot(
  model,
  lambda = seq(-2, 2, by = 0.1),
  color_palette = "viridis",
  showplot = TRUE,
  ...
)

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'

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

...

additional parameters to be given to viridisPalette, such as alpha and direction

Value

Lambda plot for tracing t-staitics across different values of lambda (in ggplot2)

Examples

mod <- lm(s2 ~ (A+B+C)^2,data=original_epitaxial)
lambda_plot(mod)
lambda_plot(mod,lambda = seq(0,2,0.1))
lambda_plot(mod,lambda = seq(0,2,0.1),showplot = FALSE)

toledo60/ggDoE documentation built on June 16, 2024, 3:36 p.m.