Learn R Programming

vectools (version 0.3.0)

71_projections: Projections

Description

Functions for Mapping 3D GeomObject(s) to 2D GeomObject(s).

Usage

# S3 method for GeomArray
vt3.proj(v, proj="xy", sort=TRUE, …)

# S3 method for Grid vt3.proj(v, proj="xy", …) # S3 method for Line vt3.proj(v, proj="xy", …) # S3 method for Point vt3.proj(v, proj="xy", …) # S3 method for Polygon vt3.proj(v, proj="xy", …) # S3 method for Text vt3.proj(v, proj="xy", …)

Arguments

v

A 3D GeomObject.

proj

String, including "xy", "xz" or "yz"

sort

Logical, if true, sort the GeomArray, which is necessary to plot the corresponding 2D-based arrays correctly.

Ignored.

Value

A 2D GeomObject.

Note that plotting a 3D object, automatically projects it.

See Also

range.GeomArray

Examples

Run this code
# NOT RUN {
range (TCUBE)

range (vt3.proj (TCUBE) )
range (vt3.proj (TCUBE, "xz") )
# }

Run the code above in your browser using DataLab