spotPlot: spot plot (generic function)

View source: R/spotPlot.R

spotPlotR Documentation

spot plot (generic function)

Description

A wrapper function for available plotting options in SPOT and SPOTMisc. Plotting functions from SPOT -> plotdata, plotModel, plotFunction. Plotting functions from SPOTMisc -> plot_parallel, plot_sensitivity.

spotPlot provides a higher level of abstraction and the users can use every plotting function only by calling spotPlot.

Usage

spotPlot(plotType, ...)

Arguments

plotType

function type to be called. It should be given as either "data", "model", "fun", "parallel" or "sensitivity". Otherwise the function returns an error message.

...

additional parameters passed to plotData or plotModel, plotFunction, plot_parallel or plot_sensitivity.

Author(s)

Alpar Guer alpar.guer@smail.th-koeln.de

See Also

plotData

plotModel

plotFunction

Examples

library("SPOT")
set.seed(1)                              # seed
k <- 30                                  # sample number
x <- matrix( cbind(runif(k)*10, runif(k)*10), k, 2)    # create data
y <- funSphere(x)      # generate random test data
fit <- buildLM(x,y)                      # create a model
result <- spot(x=NULL, funSphere, c(-5, -5), c(5, 5))

spotPlot(plotType="data", x, y, type="filled.contour")
spotPlot(plotType="model", object=fit, type="contour")
spotPlot(plotType="fun", f=function(x){rowSums(x^2)},
   lower=c(-10,0), upper=c(15,10), type="filled.contour")
spotPlot(plotType = "parallel", object=fit)
spotPlot(plotType = "sensitivity", object=result)


SPOTMisc documentation built on Sept. 5, 2022, 5:06 p.m.