Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plotsurf

Visualise Surface Estimates


Description

Visualises surface estimates obtained with BayesX.

Usage

plotsurf(data, x=2, y=3, z=4, mode=1, ticktype="detailed", 
         expand=0.75, d=100, theta=-30, phi=25, ...)
akimaPermitStatus()
akimaPermit()

Arguments

data

Either the name of a file or a data frame containing the estimation results.

x

Defines the x-axis in the plot. Either the name of a variable in data or the index of the corresponding column.

y

Defines the y-axis in the plot. Either the name of a variable in data or the index of the corresponding column.

z

Defines the z-axis in the plot. Either the name of a variable in data or the index of the corresponding column.

mode

plotsurf is mostly a convenient interface to the functions persp (mode=1), image (mode=2) and contour (mode=3).

ticktype, expand, d, theta, phi

Overwrite the default behaviour of persp

...

Further parameteres that are parsed to the internal call to persp, image or contour

Details

The akimaPermit function is used to choose to permit the use of akima if installed, and akimaPermitStatus reports its status. The licence for akima is not Free or Open Source and explicitly forbids commercial use. See the akima licence file for details.

Author(s)

Felix Heinzl, Thomas Kneib

See Also

Examples

res <- read.table(system.file("examples/surface_f_x1_x2_pspline.res", 
                              package="BayesX"), header=TRUE)

# call akimaPermit to allow use of akima despite its licence that restricts
# usage to non-commercial purposes
akimaPermit()
plotsurf(res)
plotsurf(res, mode=2)
plotsurf(res, mode=3)

plotsurf(res, x="x1", y="x2", z="pmed")

plotsurf(res, ticktype="simple")

plotsurf(res, main="3D-Plot", xlab="myx", ylab="myy", zlab="f(myx,myy)")

BayesX

R Utilities Accompanying the Software Package BayesX

v0.3-1
GPL-2 | GPL-3
Authors
Nikolaus Umlauf [aut, cre], Thomas Kneib [aut], Nadja Klein [aut], Felix Heinzl [ctb], Andreas Brezger [ctb], Daniel Sabanes Bove [ctb]
Initial release
2019-08-23

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.