Learn R Programming

rgr (version 1.1.15)

gx.pairs4parts: Display a Graphical Matrix for Parts of a Compositional Data Set

Description

Displays a graphical matrix of log10 scaled x-y plots in the upper triangle and boxplots of the ilr transforms in the lower triangle for the parts of a compositional matrix. The robust ilr stability (Filzmoser et al., 2010) for each x-y pair is displayed as the boxplot title.

Usage

gx.pairs4parts(xx, cex = 2, ifwarn = TRUE, ...)

Arguments

xx

a matrix, or sub-matrix, of parts from a compositional data set.

cex

by default the size of the text of the variable names in the diagonal of the graphical matrix. By default cex = 2, and may be changed if required.

ifwarn

by default ifwarn = TRUE which generates a reminder/warning that when carrying out analyses of compositional data all data must be in the same measurement units. The message can be suppressed by setting ifwarn = FALSE.

further arguments to be passed to plot or bxplot. For example, the size of the axis scale annotation can be change by setting cex.axis and the size of the plot title by setting cex.main. For example, if it is required to make the plot title smaller, add cex.main = 0.9 to reduce the font size by 10%.

References

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.

See Also

ltdl.fix.df, remove.na, bxplot, ilr.stab

Examples

Run this code
# NOT RUN {
## Make test data available
data(sind.mat2open)

## Display 'pairs' plots for a set, or sub-set, of parts of a
## compositional data matrix
gx.pairs4parts(sind.mat2open)
# }

Run the code above in your browser using DataLab