plot.barp_table: Method plot for object barp_table

View source: R/plot.barp_table.r

plot.barp_tableR Documentation

Method plot for object barp_table

Description

Plots 4 barplots in one page using a barp_table object as input

Usage

## S3 method for class 'barp_table'
plot(
  x,
  main = "dada2sum",
  pal2table,
  oma1 = 12,
  ncol.leg = ceiling(nrow(x$table)/5),
  x.leg = -ncol(x$table) * 1.5,
  y.leg = -0.5,
  pt.cex = 2.5,
  x.int = 1
)

Arguments

x

Object of class barp_table

main

One of 'vsearchsum' or 'dada2sum' or a vector with 4 elements which are the titles the plots

pal2table

Object of class pal2table for matching colors to Taxa

oma1

Space on lower margin to allocate legend (passed to graphical parameter oma)

ncol.leg

Number of columns of legend

x.leg

X value for upper left corner of legend

y.leg

Y value for upper left corner of legend

pt.cex

Size of symbol in legend

x.int

Value passed to x.intersp (see ?legend )

Details

This function takes a table created by barp.table and creates 4 barplots whith absolute and relative number of reads and absolute and relative number of OTUs/ASV per Taxon

Value

A graph with 4 barplots

Author(s)

Pedro Martinez Arbizu

See Also

plot.barp_table

Examples


bp1 <- barp.table(meio[,9:27],meio$Group,sum)
colmeio <- pal2table( c(rownames(bp1$table),'Branchiopoda','Calanoida','Cyclopoida','Harpacticoida','Isopoda','Misophrioida','Ostracoda','Siphonostomatoida','Tanaidacea','Tantulocarida'),pal='c25bro2')
plot(bp1,pal2table=colmeio)


pmartinezarbizu/dada2pp documentation built on Feb. 7, 2024, 7:01 a.m.