Interpolation: A function to do bi-directionnal linear interpolation over x...

Description Usage Arguments Value Note Author(s) Examples

Description

Interpolation takes a three columns data frame to do a linear interpolation over X with points seperated by intervX then over Y with points seperated by intervY.

Usage

1
Interpolation(Tab, intervX = NULL, intervY = NULL, mini=T)

Arguments

Tab

Dataframe to be interpolated. This data frame must be a three columns data frame. Columns must be x, y and z, in that order.

intervX

Interval between two interpolated points over X axis.

intervY

Interval between two interpolated points over Y axis.

mini

Logical, if TRUE, the return result is subset(Tab,Tab$z>=min(subset(Tab$z,Tab$z>0)))

Value

Returns a three data frame of the form x, y and z with the same column names as input data frame.

Note

For further details on the use of interp, please refer to help(interp).

Author(s)

Vincent Le Bourlot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# an example using the dataset sample provided

# Load sample
data(sample)

# Plot the data using STdiag
#
STdiag(z~x*y,sample,log=TRUE)

# Interpolate with finner X and Y and plot the new data 
sample.interp=Interpolation(sample,intervX=1,intervY=0.02)
STdiag(z~x*y,sample.interp,log=TRUE)

STdiag documentation built on May 2, 2019, 4:58 p.m.