Fig2.1: Reproduce Figure 2.1

View source: R/shapes.R

Fig2.1R Documentation

Reproduce Figure 2.1

Description

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

Usage

Fig2.1(
  range = c(-5, 5),
  col = c("#FF4E37FF", "#008DFFFF"),
  parlist = list(mfrow = c(1, 2), mar = c(4, 4, 0.5, 0.5), mgp = c(2, 1, 0), oma = c(0,
    0, 2, 0))
)

Arguments

range

Range for beta coefficient (vector of length 2)

col

Lasso/ridge color (vector of length 2)

parlist

List of arguments to pass to par()

Examples

Fig2.1()


pbreheny/hdrm documentation built on May 24, 2024, 9:30 p.m.