Learn R Programming

rgr (version 1.1.0)

gx.2dproj.plot: Function to Display a Saved 2-D Projection Object

Description

Displays the 2-d projection saved from gx.2dproj, optionally the row numbers of the input matrix may be displayed instead of the default plotting symbol.

Usage

gx.2dproj.plot(save, idplot = FALSE, main = "", ...)

Arguments

save
the saved object from gx.2dproj.
idplot
to display the input matrix row numbers set idplot = TRUE.
main
an alternative plot title to that in the saved object from gx.2dproj, see Details below.
...
further arguments to be passed to methods concerning the plot. For example, if smaller plotting characters are required, specify cex = 0.8; or if some colour other than black is required for the plotting characters, specify col = 2

Details

If main is undefined the plot title from the saved object from gx.2dproj is displayed. If no plot title is required set main = "", or if a user defined plot title is required it should be defined in main, e.g., main = "Plot Title Text". The x- and y-axis labels are those in the saved object from gx.2dproj and indicate the type of 2-d projection in the display.

References

Reimann, C., Filzmoser, P., Garrett, R. and Dutter, R., 2008. Statistical Data Analysis Explained: Applied Environmental Statistics with R. John Wiley & Sons, Ltd., 362 p. Venables, W.N. and Ripley, B.D., 2001. Modern Applied Statistics with S-Plus, 3rd Edition, Springer, 501 p.

See Also

gx.2dproj

Examples

Run this code
## Make test data available
data(sind)
sind.mat <- as.matrix(sind[, -c(1:3)])
## Ensure all data are in the same units (mg/kg)
sind.mat2open <- sind.mat
sind.mat2open[, 2] <- sind.mat2open[, 2] * 10000

## Display default 2-D Projection
sind.save <- gx.2dproj(ilr(sind.mat2open))

## Display saved object
gx.2dproj.plot(sind.save,
	main = "Howarth & Sinding-Larsen
Stream Sediments, ilr Transformed Data")

## Clean-up
rm(sind.mat)
rm(sind.save)

Run the code above in your browser using DataLab