[R] MDSplot randomForests symbols instead colors
Gavin Simpson
gavin.simpson at ucl.ac.uk
Wed Jan 23 13:13:47 CET 2008
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
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: http://www.r-project.org/posting-guide.html
HTH
G
--
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
Dr. Gavin Simpson [t] +44 (0)20 7679 0522
ECRC, UCL Geography, [f] +44 (0)20 7679 0565
Pearson Building, [e] gavin.simpsonATNOSPAMucl.ac.uk
Gower Street, London [w] http://www.ucl.ac.uk/~ucfagls/
UK. WC1E 6BT. [w] http://www.freshwaters.org.uk
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
More information about the R-help
mailing list