## 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 identifying input matrix row numbers (cex = 0.7),
## and with an alternate main title (cex.main = 0.8)
gx.2dproj.plot(sind.save, idplot = TRUE, cex = 0.7,
main = "Howarth & Sinding-Larsen
Stream Sediment ilr Transformed Data", cex.main = 0.8)
## Clean-up
rm(sind.mat)
rm(sind.mat2open)
rm(sind.save)
Run the code above in your browser using DataLab