vc_plot_green: Display the stored region and oriented boundary for a Green...

View source: R/green.R

vc_plot_greenR Documentation

Display the stored region and oriented boundary for a Green comparison

Description

Display the stored region and oriented boundary for a Green comparison

Usage

vc_plot_green(result, region, title = NULL)

Arguments

result

Result of vc_green().

region

Result of vc_region() sampled from the same graphs and interval.

title

Optional character title.

Value

Plotly widget showing the region, sampled orientation arrows and both integral estimates. No field or boundary is reevaluated.

Examples

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)))
}

vectorialcalculus documentation built on Nov. 17, 2026, 1:09 a.m.