Re: [R] MDSplot randomForests symbols instead colors

From: Gavin Simpson <gavin.simpson_at_ucl.ac.uk>
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

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
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
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 https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive