Learn R Programming

BinMat (version 0.1.6)

scree: Draws a scree plot.

Description

Creates a scree plot for the nMDS. This indicates the optimum number of dimensions to use to minimise the stress value. The stress value is indicated by a red dotted line at 0.15. Values equal to or below this are considered acceptable.

Usage

scree(x, dimensions = 4, dist_meth = "binary")

Value

Scree plot.

Arguments

x

Consolidated binary matrix with grouping information in column 2.

dimensions

Number of dimensions to plot. Set to 4 by default.

dist_meth

Distance method. Set to "binary" by default. Other options are "euclidean", "maximum", "manhattan", "canberra", or "minkowski".

Examples

Run this code
mat = BinMatInput_ordination
scree(mat)


Run the code above in your browser using DataLab