vc_plot_limit: Plot finite limit probes without evaluating the approach...

View source: R/limit.R

vc_plot_limitR Documentation

Plot finite limit probes without evaluating the approach point

Description

Plot finite limit probes without evaluating the approach point

Usage

vc_plot_limit(
  result,
  f,
  xlim = NULL,
  n = 401L,
  colors = c(curve = "#24476b", left = "#188367", right = "#c44736", limit = "#8250a3"),
  title = NULL,
  xlab = "x",
  ylab = "f(x)"
)

Arguments

result

Result from vc_limit().

f

The same deterministic scalar function used for the calculation. Function values at the stored anchor points must match the result.

xlim

Optional increasing pair of finite real plot limits, containing the anchor points. NULL derives limits around the anchors.

n

Integer number of curve samples, at least 2. The curve is a sampled visualization, not an exact representation or a continuity test.

colors

Named vector with curve, left, right and limit colors.

title

Optional scalar plot title. NULL uses a descriptive default.

xlab, ylab

Scalar axis labels.

Details

The approach point is excluded from all function evaluations. The lower panel uses logarithmic distance with smaller distances to the right. No proof of limit existence or infinity is implied.

Value

Plotly widget with sampled function, side probes and a distance panel. A finite compatible estimate is an open marker, not f(x0).

Examples

if (requireNamespace("plotly",quietly=TRUE)) {
  f <- function(x) sin(x)/x
  f |> vc_limit(0) |> vc_plot_limit(f=f)
}

vectorialcalculus documentation built on Nov. 17, 2026, 1:09 a.m.