[R] plot legend from file

Kim Vanselow
Thu, 05 Nov 2009 10:10:48 -0000

Dear r-helpers,
I want to plot a legend (using legend())into an ordination plot (nmds produced
by vegan/metaMDS). I used the output of a cluster analysis to create groups. I
created a new .csv-file with 2 columns, one with the site ID used in the
ordination, one with the group label derieved from the cluster dendrogram. I
used this file to display the site-labels in differnt group-specified colours
(using col=groupfile$grouplabel). This works. But now I want to create a legend
with these groups and groupcolours from this file. I did not find anything in
tutorials or help files about this. Maybe you have an idea?
Thank you very much
Kim
--
GRATIS f?r alle GMX-Mitglieder: Die maxdome Movie-FLAT!