caplot(x, y, z, zname = deparse(substitute(z)),
caname = deparse(substitute(z)), log = TRUE, ifjit = FALSE,
ifrev = FALSE, ngrid = 100, colr = topo.colors(16),
xcoord = "Easting", ycoord = "Northing")
zname = "Cu (mg/
caname = "Kola Project, 1995
Cu (mg/kg) in <2 mm="" o-horizon="" soil"<="" code="">. 2>
log = FALSE
as in most cases this function is used with positively skewed data, where a logarithmic data transform is appropriate. If it is required to undertake the C-A plot interpolation without a logarithmic data traifjit = TRUE
. The presence of multiple data at an identical location will cause the Akima (1996) interpolation function to ifrev = FALSE
. As the C-A plot is a log-log display this provides greater detail for the highest values. The direction of accumulation can be key in detecting mungrid = 100
, this results in the data being interpolated into a 100 x 100 grid that extends between the data set's spatial extremes determined for the (x,y) spatial coordinates for the data. See Details below.colors
, and see Details below.log = TRUE
, is highly recommended. Following generation of the interpolated grid and prior to futher processing the interpolated grid values are clipped by the convex-hull of the spatial locations, therefore there is effectively no interpolation beyond the spatial extent, convex hull, of the data.
The use of the topo.colors(16)
palette to display the image of the interpolated values leads to low values being plotted in blue, and as the interpolated values increase they take on green, yellow and orange colors. For a grey-scale display for black-and-white use set colr = grey(0:8/8)
. This leads to lowest interpolated values being plotted in black and the highest in white, using colr = grey(8:0/8)
reverses this, with the lowest values being plotted in white and the highest in black. In either case, if the values plotted in white occur at the study area boundary, i.e. at the convex hull, the difference between no data and white cannot be discerned.
For preparation of the C-A plot the ordered vector of interpolated values is used as a surrogate for the measurement of area greater than, or less than, a stated interpolated value. The cumulative percentage count of the interpolated values being plotted on the y-axis of the C-A plot. As noted above, it is both informative and important to display the C-A plot accumulated both upwards and downwards.cnpplt
, interp
, colors
, ltdl.fix.df
## Make test data available
data(kola.o)
attach(kola.o)
## A default (uninformative) C-A plot
caplot(UTME/1000, UTMN/1000, Cu)
## Plot a more appropriately scaled (log transformed data) and
## titled display
caplot(UTME/1000, UTMN/1000, Cu, log = TRUE,
zname = "Cu (mg/kg) in <2 mm O-horizon soil",
caname = "Kola Project, 1995
Cu (mg/kg) in <2 mm O-horizon soil")
## Plot as above but with the C-A plot accumulation reversed
caplot(UTME/1000, UTMN/1000, Cu, log = TRUE, ifrev = TRUE,
zname = "Cu (mg/kg) in <2 mm O-horizon soil",
caname = "Kola Project, 1995
Cu (mg/kg) in <2 mm O-horizon soil")
## Detach test data
detach(kola.o)
Run the code above in your browser using DataLab