| vc_plot_green | R Documentation |
Display the stored region and oriented boundary for a Green comparison
vc_plot_green(result, region, title = NULL)
result |
Result of vc_green(). |
region |
Result of vc_region() sampled from the same graphs and interval. |
title |
Optional character title. |
Plotly widget showing the region, sampled orientation arrows and both integral estimates. No field or boundary is reevaluated.
if (requireNamespace("plotly",quietly=TRUE)) {
lo <- function(x)0
hi <- function(x)1
result <- vc_green(function(p)c(-p[2],p[1]),lo,hi,c(0,1),
rotation=function(p)2,n_outer=2,n_inner=2)
vc_plot_green(result,vc_region(lo,hi,c(0,1)))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.