View source: R/parametric_curve.R
| vc_plot_curve | R Documentation |
Display stored spatial curve samples
vc_plot_curve(
result,
mode = c("lines", "markers", "lines+markers"),
line = list(color = "#24476b", width = 4),
marker = list(),
title = NULL
)
result |
Result of vc_curve_sample(). |
mode |
Plotly mode for lines, markers or both. |
line, marker |
Plotly style lists. |
title |
Optional character title. |
A Plotly widget in physical Cartesian coordinates. Parameter values are available in hover text. A one-point curve uses a marker.
if(requireNamespace("plotly",quietly=TRUE)) {
vc_curve_sample(function(t)c(t,t^2,t^3),c(0,1)) |> vc_plot_curve()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.