Plot.MDS: Multidimensional Scaling Plot of Microbiome Data

Description Usage Arguments Value Examples

View source: R/Plot.MDS.R

Description

Plots any number of data sets on an MDS plot.

Usage

1
Plot.MDS(group.data, main = "Group MDS", retCords = FALSE)

Arguments

group.data

A list of matrices of taxonomic counts(columns) for each sample(rows).

main

A string to be used as the plots title.

retCords

A boolean to return the mds coordinates or not.

Value

A MDS plot and possibly the x-y coordinates for every point.

Examples

1
2
3
4
5
6
7
8
	data(saliva)
	data(throat)
	data(tonsils)
	
	### Combine the data sets into a single list
	group.data <- list(saliva, throat, tonsils)
	
	Plot.MDS(group.data)

Example output

Loading required package: dirmult

Attaching package: 'HMP'

The following object is masked from 'package:dirmult':

    weirMoM

HMP documentation built on Aug. 31, 2019, 5:05 p.m.