map.to.lev: rearrange data frame for plotting with levelplot
Description
rearrange data frame for plotting with levelplotUsage
map.to.lev(data, xcol = 1, ycol = 2, zcol = c(3, 4), ns = names(data)[zcol])
Arguments
xcol
x-coordinate column number
ycol
y-coordinate column number
zcol
z-coordinate column number range
ns
names of the set of z-columns to be viewed
Value
- data frame with the following elements:
- xx-coordinate for each row
- yy-coordinate for each row
- zcolumn vector with each of the elements in columns
zcol
of data
stacked - namefactor; name of each of the stacked
z
columns