spotSurfContour: spotSurfContour

Description Usage Arguments See Also Examples

Description

Simple surface plot, using the filled.contour function.

Usage

1
2
3
4
5
spotSurfContour(f = function(x) {     rowSums(x^2) }, lo = c(0, 0),
  up = c(1, 1), s = 100, xlab = "x1", ylab = "x2",
  color.palette = terrain.colors, title = " ", levels = NULL, points1,
  points2, pch1 = 20, pch2 = 8, lwd1 = 1, lwd2 = 1, cex1 = 1,
  cex2 = 1, col1 = "black", col2 = "black", ...)

Arguments

f

function to be plotted. The function should either be able to take two vectors or one matrix specifying sample locations. i.e. y=f(X) or y=f(x2,x1) where Z is a two column matrix containing the sample locations x1 and x2.

lo

lower boundary for x1 and x2 (defaults to c(0,0)).

up

upper boundary (defaults to c(1,1)).

s

number of samples along each dimension. e.g. f will be evaluated s^2 times.

xlab

lable of first axis

ylab

lable of second axis

color.palette

colors used, default is terrain.color

title

title of the plot

levels

number of levels for the plotted function value. Will be set automatically with default NULL.

points1

can be omitted, but if given the points in this matrix are added to the plot in form of dots

points2

can be omitted, but if given the points in this matrix are added to the plot in form of crosses

pch1

pch (symbol) setting for points1 (default: 20)

pch2

pch (symbol) setting for points2 (default: 8)

lwd1

line width for points1 (default: 1)

lwd2

line width for points2 (default: 1)

cex1

cex for points1 (default: 1)

cex2

cex for points2 (default: 1)

col1

color for points1 (default: "black")

col2

color for points2 (default: "black")

...

additional parameters passed to f

See Also

spotSurf3d

Examples

1


Search within the SPOT package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.