Display Plots for Two Parts from a Compositional Data Set
Displays a panel of four plots for a pair of parts from a compositional data set. The displays consist of a log10 scaled x-y plot, a boxplot of the corresponding values of ilr(x,y) annotated with the robust ilr stability measure, and sequential index and ECDF plots of the ilr values. The display is based on those used in Filzmoser et al. (2010).
gx.plot2parts(xx1, xx2, x1lab = deparse(substitute(xx1)), x2lab = deparse(substitute(xx2)), cex = 0.8, ifwarn = TRUE, ...)
xx1 |
a column vector from a matrix or data frame of compositional data, |
xx2 |
another column vector from the matrix or data frame of compositional data, |
x1lab |
the x-axis title, by default the variable name, |
x2lab |
the y-axis title, by default the variable name, |
cex |
by default the size of the text for data set size, N, and the robust ilr stability is set to 80%, i.e. |
ifwarn |
by default |
... |
further arguments to be passed to methods. For example, the size of the axis scale annotation can be change by setting |
Any less than detection limit values represented by negative values, or zeros or other numeric codes representing blanks in the data, must be removed prior to executing this function, see ltdl.fix.df
.
Any data vectors (rows) containing NA
s are removed prior to computation.
Robert G. Garrett
Filzmoser, P, Hron, K. and Reimann, C., 2010. The bivariate statistical analysis of environmental (compositional) data. Science of the Total Environment, 408(19):4230-4238.
## Make test data available data(sind) attach(sind) ## Display gx.plot2parts(Cu, Zn) ## Display with alternate xy-plot titling gx.plot2parts(Cu, Zn, x1lab = "Cu (mg/kg) in stream sediment", x2lab = "Zn (mg/kg) in stream sediment") ## Detach test data detach(sind)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.