spotPlot | R Documentation |
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.
spotPlot(plotType, ...)
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 |
Alpar Guer alpar.guer@smail.th-koeln.de
plotData
plotModel
plotFunction
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.