Re: [R] MDSplot randomForests symbols instead colors

From: Gavin Simpson <>
Date: Wed, 23 Jan 2008 12:13:47 +0000

hits=-2.6 tests=BAYES_00
X-USF-Spam-Flag: NO

On Wed, 2008-01-23 at 02:56 -0800, Diana Perdiguero wrote:
> I would like to publish a MDS plot from a randomForests analysis, but I only
> know how to get it in colors (6 different classes) and I need it with
> symbols. Do you know how to do it?
> Thank you very much in advance
> Best
> diana


Please read the documentation for functions *before* posting, as the posting guide asks.

If you look at ?MDSplot you will see two arguments, "palette" and "pch", which control the colours and plotting symbols respectively. Ok, the documentation is terse and there is a presumption that you know how pch works (it is a graphical parameter documented in ?par), so we might forgive you asking for help specifying these correctly, but the Examples: section shows you a solution to your question using these two arguments.

You will save yourself, and others, a lot of time and effort if you use the R tools at your disposal to find the help you want, especially when the author of MDSplot() has gone to the trouble of providing documentation and relevant examples. These and more are documented in the posting guide:


 Dr. Gavin Simpson             [t] +44 (0)20 7679 0522
 ECRC, UCL Geography,          [f] +44 (0)20 7679 0565
 Pearson Building,             [e]
 Gower Street, London          [w]
 UK. WC1E 6BT.                 [w]

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 23 Jan 2008 - 12:23:07 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 23 Jan 2008 - 13:30:07 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive