Fig2.2: Reproduce Figure 2.2

View source: R/thresh.r

Fig2.2R Documentation

Reproduce Figure 2.2

Description

Reproduces Figure 2.2 from the book; if you specify any options, your results may look different.

Usage

Fig2.2(
  range = c(-2.5, 2.5),
  col = c("#FF4E37FF", "#008DFFFF"),
  mar = c(3, 5, 3, 0.5)
)

Arguments

range

Range for beta coefficient (vector of length 2)

col

Lasso/ridge color (vector of length 2)

mar

Plot margins (as in ⁠[par()]⁠)

Examples

Fig2.2()

pbreheny/hdrm documentation built on March 29, 2025, 5:18 a.m.