View source: R/solid_cartesian.R
| vc_plot_solid_cartesian | R Documentation |
Display stored Cartesian solid faces or wireframes
vc_plot_solid_cartesian(
result,
mode = c("faces", "wireframe", "both"),
faces = names(result$faces),
opacity = 0.4,
wire_step = 2L,
title = NULL
)
result |
Result of vc_solid_cartesian(). |
mode |
Faces, wireframe or both. |
faces |
Nonempty unique character subset of stored face names. |
opacity |
Surface opacity between zero and one. |
wire_step |
Positive integer stride for wire lines, retaining endpoints. |
title |
Optional character title. |
Wire rows/columns use the stored parameter grids. Faces can be selected independently. Interpolation is a display approximation; normal orientation, manifold structure and exact closure are not certified.
Plotly widget consuming stored face data only. No boundary evaluation, integral calculation or automatic internal slices are performed.
if(requireNamespace("plotly",quietly=TRUE)) {
s <- vc_solid_cartesian(function(x)0,function(x)1,function(v)0,
function(v)1,c(0,1),n=2,n_u=2,n_v=2)
vc_plot_solid_cartesian(s,mode="both")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.