Last data update: 2014.03.03

R: Plot a 3-D (using RGL) view of a function
sectionview3d.funR Documentation

Plot a 3-D (using RGL) view of a function

Description

Plot a 3-D view of a function. Provide a better understanding of the model behaviour.

Usage

  sectionview3d.fun(fun,
    dim = ifelse(is.null(center), 2, length(center)),
    center = NULL, axis = NULL, npoints = 20, col = "blue",
    Xname = NULL, yname = NULL, Xscale = 1, yscale = 1,
    xlim = c(0, 1), ylim = NULL, title = NULL, add = FALSE,
    ...)

Arguments

fun

an object of class "function".

dim

the dimension of fun arguments.

center

optional coordinates (as a list or data frame) of the center of the section view if the model's dimension is > 2.

axis

optional matrix of 2-axis combinations to plot, one by row. The value NULL leads to all possible combinations i.e. choose(D, 2).

npoints

an optional number of points to discretize plot of response surface and uncertainties.

col

color for the surface.

xlim

a list to give x range for all plots.

ylim

an optional list to force y range for all plots.

Xname

an optional list of string to overload names for X.

yname

an optional string to overload name for y.

Xscale

an optional factor to scale X.

yscale

an optional factor to scale y.

title

an optional overload of main title.

add

to print graphics on an existing window.

...

further arguments passed to the first call of plot3d.

Author(s)

Yann Richet, IRSN

See Also

sectionview

Examples

## A 2D example - Branin-Hoo function.
sectionview3d.fun(branin,dim = 2)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(DiceView)
Loading required package: DiceKriging
Loading required package: DiceEval
Loading required package: rgl
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/DiceView/sectionview3d.fun.Rd_%03d_medium.png", width=480, height=480)
> ### Name: sectionview3d.fun
> ### Title: Plot a 3-D (using RGL) view of a function
> ### Aliases: sectionview3d.fun
> 
> ### ** Examples
> 
> ## A 2D example - Branin-Hoo function.
> sectionview3d.fun(branin,dim = 2)
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>