Plot.Pi: Plot the Pi Vector

Description Usage Arguments Value Examples

Description

Plots the taxa proportions for every group.

Usage

1
2
	Plot.PI(estPi, errorBars = TRUE, logScale = FALSE, 
		main = "PI Vector", ylab = "Fractional Abundance")

Arguments

estPi

The results for either MLE or MOM from the function 'Est.Pi'.

errorBars

A boolean to display the error bars or not.

logScale

A boolean to log the y scale or not.

main

A string to be used as the plots title.

ylab

A string to be used as the plots y-axis title.

Value

A plot of the pi vectors for every group.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
	## Not run: 
		data(saliva)
		data(throat)
		data(tonsils)
		
		### Combine the data sets into a single list
		group.data <- list(saliva, throat, tonsils)
		
		### Get PI using MLE with CI
		mle <- Est.PI(group.data)$MLE
		
		### Plot with Error Bars
		Plot.PI(mle)
		
		### Plot without Error Bars
		Plot.PI(mle, FALSE)
		
		### Plot with Error Bars and scaling
		Plot.PI(mle, TRUE, TRUE)
	
## End(Not run)

Example output

Loading required package: dirmult

Attaching package:HMPThe following object is masked frompackage:dirmult:

    weirMoM

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