| vc_plot_region | R Documentation |
Display a stored planar region in 2D or as a horizontal plate
vc_plot_region(
result,
view = c("2d", "3d"),
plane_z = 0,
show_grid = TRUE,
title = NULL
)
result |
Result of vc_region(). |
view |
Filled 2D region or sampled 3D plate. |
plane_z |
Finite display height for the 3D plate, not an integration value. |
show_grid |
Logical; show stored vertical sections in the 3D view. |
title |
Optional character title. |
In 2D reuses vc_plot_double_integral's sampled-domain renderer. In 3D the grid has u rows/x columns and every height equals plane_z. The plate has zero thickness; display height is not scalar-field height. Interpolation may miss crossings/oscillations between samples. Degenerate sections may collapse surface triangles. Human rendering review is separate.
Plotly widget based only on stored region samples; no boundary reevaluation, integration or area calculation is performed.
if(requireNamespace("plotly",quietly=TRUE)) {
r <- vc_region(function(x)x^2,sqrt,c(0,1),n=8,n_u=4)
vc_plot_region(r,view="3d",plane_z=2)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.