rd_3_plots_triangular {barsurf}R Documentation

Plots of Functions over Triangular Domains

Description

Plots (in 2D and 3D) of functions over triangular domains.

Usage

plot2d.tricontour (x, y, z, zb,
    contours=TRUE, heat.map=TRUE,
    main, xlab="x", ylab="y",
    colv.1, colv.2, contrast=0,
    pty="s", ...)

plot3d.trisurface (x, y, z,
    main, xlab="x", ylab="y",
    colv.1, colv.2, contrast=0,
    zlim, ...)

lr2na (z)

Arguments

x

An optional sorted vector of x values.

y

An optional sorted vector of y values.

z

A square matrix of point values.

zb

A vector of contour values.

contours

If true (the default), plot contour lines.

heat.map

If true (the default), plot a heat map.

main

.

xlab

.

ylab

.

colv.1

An HCL color vector.

colv.2

An HCL color vector.

contrast

A numeric scalar, giving the relative contrast, currently in the interval [-1, 0].

pty

.

zlim

The z axis limits.

...

Other arguments for par().

Details

Only the upper left part of the matrix is used.

Refer to the details sections of plot2d.contour() and plot3d.surface() for more information.

Note that in plot3d.trisurface(), the x and y arguments are ignored.

Examples

x = y = 1:30
f = function (x, y) x ^ 2 + y ^ 2
z = outer (x, y, f)
plot3d.surface (,,z)

[Package barsurf version 0.3.1 Index]