Mat.Vanderklift at csiro.au
2006-Dec-18 01:07 UTC
[R] Replacing labels with symbols in biplot
Dear all I would like to replace labels for x in biplot() with symbols (points) that will visually illustrate different classes/groups. After an unsuccessful search through the documents and archives, I turn to the list for help - any suggestions that can point me in the right direction? Thanks Mat Vanderklift
Hi Mat, You can more-or-less do what you want with the xlabs argument to biplot. It only takes characters, rather than the normal plot symbol codes, though. If you need symbols, you can "cheat" with things like + o x. I usually use letters for the different groups within the data:> temp <- matrix(runif(50), nrow=10) > temp.pca <- princomp(temp) > biplot(temp.pca, xlabs=c("A", "A", "B", "B", "B", "C", "C", "C", "D", "D")) >Sarah On 12/17/06, Mat.Vanderklift at csiro.au <Mat.Vanderklift at csiro.au> wrote:> Dear all > I would like to replace labels for x in biplot() with symbols (points) > that will visually illustrate different classes/groups.-- Sarah Goslee http://www.stringpage.com http://www.functionaldiversity.org