View source: R/plot_stationary_surface.R
| vc_plot_stationary_surface | R Documentation |
Inspect stored stationary candidates on a sampled 3D graph
vc_plot_stationary_surface(
result,
f,
xlim = NULL,
ylim = NULL,
n = 41L,
colors = c(minimum = "#188367", maximum = "#c44736", saddle = "#8250a3", inconclusive =
"#dd8800"),
opacity = 0.65,
marker_size = 6,
title = NULL
)
result |
Two-coordinate result of vc_stationary_points(). |
f |
Same scalar field, accepting one coordinate vector. |
xlim, ylim |
Finite increasing display bounds; default search bounds or starts/candidate extent enlarged by one unit. |
n |
Integer samples per coordinate, at least two. Matrix rows are y, columns x. Unavailable/nonfinite surface values are gaps. |
colors |
Named minimum,maximum,saddle,inconclusive Plotly colors. |
opacity |
Surface opacity between zero and one. |
marker_size |
Positive candidate marker size. |
title |
Optional character title. |
No optimization, derivative, Hessian or classification is repeated. Only f is sampled for the graph and checked at stored candidates. Surface interpolation is not exact geometry or a smoothness/completeness proof. Labels remain conditional on the calculation hypotheses and diagnostics; inconclusive candidates stay inconclusive. No optimizer history is shown as a path. Use vc_plot_stationary for objective-evaluation playback.
Plotly surface and stored candidate markers with stored heights, conditional classification, residual and reason in hover text.
if(requireNamespace("plotly",quietly=TRUE)) {
f <- function(v)v[1]^2+2*v[2]^2
r <- vc_stationary_points(f,c(.1,.2),assume_c2=TRUE,warn=FALSE)
vc_plot_stationary_surface(r,f)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.