View source: R/osculating_geometry.R
| vc_plot_osculating_ribbon | R Documentation |
Display a stored osculating ribbon
vc_plot_osculating_ribbon(
result,
opacity = 0.4,
show_centers = TRUE,
title = NULL
)
result |
Result of vc_osculating_ribbon(). |
opacity |
Ribbon opacity between zero and one. |
show_centers |
Logical flag to display the sampled centers of curvature. |
title |
Optional character title. |
Plotly widget with the stored curve and available ribbon sections. Surface gaps remain open and isolated sections are shown as line segments.
if (requireNamespace("plotly",quietly=TRUE)) {
curve <- function(t)c(cos(t),sin(t),t/2)
vc_plot_osculating_ribbon(vc_osculating_ribbon(curve,c(0,pi),n=19))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.