08.04.2015 Views

The ade4 Package - NexTag Supports Open Source Initiatives

The ade4 Package - NexTag Supports Open Source Initiatives

The ade4 Package - NexTag Supports Open Source Initiatives

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

mstree 165<br />

mstree<br />

Minimal Spanning Tree<br />

Description<br />

Minimal Spanning Tree<br />

Usage<br />

mstree(xdist, ngmax = 1)<br />

Arguments<br />

xdist<br />

ngmax<br />

an object of class dist containing an observed dissimilarity<br />

a component number (default=1). Select 1 for getting classical MST. To add n<br />

supplementary edges k times: select k+1.<br />

Value<br />

returns an object of class neig<br />

Author(s)<br />

Daniel Chessel<br />

Examples<br />

data(mafragh)<br />

maf.coa = dudi.coa(mafragh$flo, scan = FALSE)<br />

maf.mst = mstree(dist.dudi(maf.coa), 1)<br />

s.label(maf.coa$li, clab = 0, cpoi = 2, neig = maf.mst, cnei = 1)<br />

xy = data.frame(x = runif(20), y = runif(20))<br />

par(mfrow = c(2,2))<br />

for (k in 1:4) {<br />

neig = mstree (dist.quant(xy,1), k)<br />

s.label(xy, xlim = c(0,1), ylim = c(0,1), addax = FALSE, neig = neig)<br />

}

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!