Description Usage Arguments Details Value References Examples
The pocket-plot (so named because of its use in detecting pockets of non-stationarity) is a technique necessary to identify a localized area that is atypical with respect to the stationarity model. It is built to exploit the spatial nature of the data through the coordinates of rows and columns (east "X" and north "Y", respectively).
1 | pocket.plot(data, graph, X, Y, Z, Iden, ...)
|
data |
data frame should contain the dependent variable and coordinates X and Y, data must be gridded |
graph |
type of graph associated with the probability or standardized variance plot pocket in the directions north-south or east-west; Probabilities PocketPlot by rows, ie horizontal "south-north" (PPR), Probabilities PocketPlot by columns, ie vertical "east-west" (PPC), PocketPlot of variance by rows, ie horizontal "south-north" (PVR) and PocketPlot of variance by columns, ie vertical "east-west" (PVC) |
X |
defined by the spatial coordinates |
Y |
defined by the spatial coordinates |
Z |
regionalized variable with which you construct the statistics associated with the probability or standardized variance, these are plotted in the so-called pocket plot |
Iden |
logical. The users can identify the points by themselves, TRUE or FALSE |
... |
arguments to be passed to ... |
For identifying outliers, this function uses a modification of the boxplot.with.outlier.label function, available at http://www.r-statistics.com/wp-content/uploads/2011/01/boxplot-with-outlier-label-r.txt
returns (or plots) the pocket plot
Cressie, N.A.C. 1993. Statistics for Spatial Data. Wiley.
Gomez, M., Hazen, K. 1970. Evaluating sulfur and ash distribution in coal seems by statistical response surface regression analysis. U.S. Bureau of Mines Report RI 7377.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | # Core measurements (in % coal ash) at reoriented locations.
# Units on the vertical axis are % coal ash.
# These data was found in mining samples originally reported by
# Gomez and Hazen (1970), and later used by Cressie (1993).
# These data are available in the sp and gstat packages
library(gstat)
data(coalash)
plot(coalash[,1:2], type="n", xlab="x", ylab="y")
text(coalash$x,coalash$y,coalash$coalash,cex=0.6)
# Pocket plot in the north-south direction.
# Units on the vertical axis are root (% coal ash)
# Plot generated with the function pocket.plot
# Clearly rows 2, 6, and 8 are atypical
# This serves as verification that these rows are potentially problematic
# Analysis of local stationarity in probabilities of the coal in south-north direction
pocket.plot(coalash, "PPR", coalash$x, coalash$y, coalash$coalash, FALSE)
# Analysis of local stationarity in variance of the coal in south-north direction
pocket.plot(coalash, "PVR", coalash$x, coalash$y, coalash$coalash, FALSE)
# Analysis of local stationarity in probabilities of the coal in east-west direction
pocket.plot(coalash, "PPC", coalash$x, coalash$y, coalash$coalash, FALSE)
# Analysis of local stationarity in variance of the coal in east-west direction
pocket.plot(coalash, "PVC", coalash$x, coalash$y, coalash$coalash, FALSE)
|
Loading required package: gstat
Loading required package: genalg
Loading required package: MASS
Loading required package: sp
Loading required package: minqa
[1] ""
[1] ""
[1] ""
[1] ""
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.