rearrange data frame for plotting with levelplot
map.to.lev(data, xcol = 1, ycol = 2, zcol = c(3, 4), ns = names(data)[zcol])data frame with the following elements:
x-coordinate for each row
y-coordinate for each row
column vector with each of the elements in columns zcol
of data stacked
factor; name of each of the stacked z columns
data frame, e.g. output from krige or predict
x-coordinate column number
y-coordinate column number
z-coordinate column number range
names of the set of z-columns to be viewed
image.data.frame, krige;
for examples see predict;
levelplot in package lattice.