Convert Lists and Matrices to Data Frames for use by Trellis

DESCRIPTION:

Convert lists ( con2tr) and matrices produced by predict.loess ( mat2r) to data frames for use by Trellis.

USAGE:

con2tr(obj)
mat2tr(z)

REQUIRED ARGUMENTS:

obj
A list of components x, y and z as passed to contour
z
A matrix.

VALUE:

A data frame suitable for passing to Trellis functions.

DETAILS:

con2tr repeats the x and y components suitably to match the vector z.

mat2tr constructs x and y columns from the dimnames of z.