Learn R Programming

compositions (version 1.01-1)

coloredBiplot: A biplot providing somewhat easier access to details of the plot.

Description

This function generates a simple biplot out of various source and allows to color the objects individually. (Warning: This preliminary version is likely to be changed in next edition)

Usage

coloredBiplot(xrf,xcol="black",ycol="red",scale=1,choice=c(1,2),pc.biplot=FALSE,pch=19,ypch=2,cex=1,xarrows=FALSE,yarrows=TRUE,...)

Arguments

xrf
some representation of the the coinformation to be plotted given by a result of princomp, prcomp or svd
xcol
The color(s) to draw the points of the first set
ycol
The color(s) to draw points or arrows of second set
scale
exponential scaling ???
choice
the components to be plotted
pc.biplot
should be scaled by sqrt(nrow(X)) ???
pch
the plotchar for the first set
ypch
the plotchar for the y component
cex
the usual cex parameter for plotting
xarrows
wether or not to plot the arrows for the first dataset
yarrows
wether or not to plot the arrows for the second dataset
...
further parameters for plot

Value

  • The function is called only for the sideeffect of plotting.

Details

The functions is provided for conveniance and is to be considered experimental.

See Also

biplot, plot.acomp

Examples

Run this code
data(SimulatedAmounts)
coloredBiplot(xrf=svd(var(sa.outliers5)),pc.biplot=FALSE,pch=c(1,2,3),xcol=1:3,ycol=c("blue","cyan","magenta"))

Run the code above in your browser using DataLab