plot.stepsize: Step-size selection visualisation

View source: R/methods.R

plot.stepsizeR Documentation

Step-size selection visualisation

Description

Plots the estimated truncation error and total errors, highlighting various ranges obtained during step-size selection for numerical differentiation. Works for all implemented methods.

Usage

## S3 method for class 'stepsize'
plot(x, ...)

## S3 method for class 'gradstep'
plot(x, index, ...)

Arguments

x

List returned by step... functions.

...

Additional graphical parameters passed to plot().

index

Integer index of character name of the coordinate of x to plot.

Value

Nothing (invisible null).

Examples


sCR <- step.CR(sin, 1)
sK <- step.K(sin, 1)
plot(sCR)
plot(sK)
f <- function(x) prod(sin(x))
s <- gradstep(f, 1:4, method = "CR")
plot(s, 3)

pnd documentation built on Sept. 9, 2025, 5:44 p.m.