Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

map.to.lev

rearrange data frame for plotting with levelplot


Description

rearrange data frame for plotting with levelplot

Usage

map.to.lev(data, xcol = 1, ycol = 2, zcol = c(3, 4), ns = names(data)[zcol])

Arguments

data

data frame, e.g. output from krige or predict

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:

x

x-coordinate for each row

y

y-coordinate for each row

z

column vector with each of the elements in columns zcol of data stacked

name

factor; name of each of the stacked z columns

See Also

image.data.frame, krige; for examples see predict; levelplot in package lattice.


gstat

Spatial and Spatio-Temporal Geostatistical Modelling, Prediction and Simulation

v2.0-7
GPL (>= 2.0)
Authors
Edzer Pebesma [aut, cre] (<https://orcid.org/0000-0001-8049-7069>), Benedikt Graeler [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.