Creates a custom BiPlot for visualizing the results of PCA
myBiplot(pc, colorfactor, scaling = 100, nudge = 1.2, N = 10, dims = 1:2, ...)
prcomp
factor
the same length as nrow(pc$x)
to color the pointsinteger
to scale the vectors showing loadingsnumeric
to offset labels for loadingsdim[1]
or dim[2]
projections to displaynumeric
vector of length 2 indicating which PCs to plotprinted plot