plot.penalty_function function

Plot penalty_function Objects

Plot penalty_function Objects

## S3 method for class 'penalty_function' plot(x, size = 1, ...)

Arguments

  • x: An object of classpenalty_function.
  • size: Numeric. Line size in geom_line.
  • ...: Currently ignored.

Returns

An object of class ggplot

Examples

func <- penalty_function(theta = seq(-5,5,length.out = 10000), lambda = 1, gamma = c(0.01, 0.05, 0.1)) plot(func)
  • Maintainer: Donald Williams
  • License: GPL-2
  • Last published: 2021-12-15

Useful links