Plots an NMDS of uscores output from the uscores or uscoresi functions.

uMDS(uscor, group = NULL, title = NULL, legend.pos = "bottomleft")

Arguments

uscor

A data frame of uscores or ranks of uscores produced by either the uscores(...) or uscoresi(...) functions

group

Optional grouping variable. Sites will be represented by different colored symbols for each group.

title

Optional title for the NMDS graph.

legend.pos

For when group is specified, the location of the legend on the graph showing the colors representing each group’s data. Default is “bottomleft”. Alternatives are “topright” and “centerleft”, etc.

Value

Prints an NMDS plot of censored data groupings based on U-scores #' @references Helsel, D.R., 2011. Statistics for Censored Environmental Data using Minitab and R, 2nd ed. John Wiley & Sons, USA, N.J.

Examples

data(PbHeron)

PbHeron.u <- uscores(PbHeron[,4:15])
uMDS(PbHeron.u)
#> Run 0 stress 0.07773434 
#> Run 1 stress 0.07851582 
#> Run 2 stress 0.07851582 
#> Run 3 stress 0.07788834 
#> ... Procrustes: rmse 0.01183561  max resid 0.03750255 
#> Run 4 stress 0.07851582 
#> Run 5 stress 0.1405507 
#> Run 6 stress 0.07788834 
#> ... Procrustes: rmse 0.01183495  max resid 0.03750238 
#> Run 7 stress 0.07851582 
#> Run 8 stress 0.0866076 
#> Run 9 stress 0.1271665 
#> Run 10 stress 0.07851582 
#> Run 11 stress 0.07851582 
#> Run 12 stress 0.07851582 
#> Run 13 stress 0.07851582 
#> Run 14 stress 0.07788834 
#> ... Procrustes: rmse 0.01183666  max resid 0.03750477 
#> Run 15 stress 0.08639937 
#> Run 16 stress 0.07762542 
#> ... New best solution
#> ... Procrustes: rmse 0.00928295  max resid 0.03814601 
#> Run 17 stress 0.07851582 
#> Run 18 stress 0.07851582 
#> Run 19 stress 0.1330282 
#> Run 20 stress 0.07762542 
#> ... Procrustes: rmse 5.734594e-06  max resid 2.151729e-05 
#> ... Similar to previous best
#> *** Best solution repeated 1 times
#> species scores not available


# With group specific
uMDS(PbHeron.u,group=PbHeron$DosageGroup)
#> Run 0 stress 0.07773434 
#> Run 1 stress 0.07844726 
#> Run 2 stress 0.07851582 
#> Run 3 stress 0.08639937 
#> Run 4 stress 0.07844726 
#> Run 5 stress 0.07788834 
#> ... Procrustes: rmse 0.01183598  max resid 0.03750173 
#> Run 6 stress 0.1353489 
#> Run 7 stress 0.07762542 
#> ... New best solution
#> ... Procrustes: rmse 0.00928363  max resid 0.03814677 
#> Run 8 stress 0.1422777 
#> Run 9 stress 0.07844726 
#> Run 10 stress 0.07844726 
#> Run 11 stress 0.07851582 
#> Run 12 stress 0.127535 
#> Run 13 stress 0.1350415 
#> Run 14 stress 0.07851582 
#> Run 15 stress 0.07851582 
#> Run 16 stress 0.07762542 
#> ... New best solution
#> ... Procrustes: rmse 9.777697e-07  max resid 4.123558e-06 
#> ... Similar to previous best
#> Run 17 stress 0.07851582 
#> Run 18 stress 0.1350415 
#> Run 19 stress 0.07788834 
#> ... Procrustes: rmse 0.008007833  max resid 0.03035809 
#> Run 20 stress 0.0866076 
#> *** Best solution repeated 1 times