bars_fun.Rd 1.2 KB
Newer Older
Etienne Rifa's avatar
Etienne Rifa committed
1
2
3
4
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bars_fun.R
\name{bars_fun}
\alias{bars_fun}
5
\title{Barplots plotly}
Etienne Rifa's avatar
Etienne Rifa committed
6
7
8
\usage{
bars_fun(
  data = data,
9
  rank = "Genus",
10
11
12
  top = 10,
  Ord1 = NULL,
  Fact1 = NULL,
13
  split = FALSE,
14
  relative = TRUE,
Etienne Rifa's avatar
update    
Etienne Rifa committed
15
  autoorder = TRUE,
Etienne Rifa's avatar
Etienne Rifa committed
16
17
18
  ylab = "Abundance",
  outfile = "plot_compo.html",
  verbose = TRUE
Etienne Rifa's avatar
Etienne Rifa committed
19
20
21
)
}
\arguments{
Rifa Etienne's avatar
Rifa Etienne committed
22
\item{data}{a phyloseq object (output from decontam or generate_phyloseq)}
23

Rifa Etienne's avatar
Rifa Etienne committed
24
\item{rank}{Taxonomy rank to merge features that have same taxonomy at a certain taxonomic rank (among rank_names(data), or 'ASV' for no glom)}
25

26
\item{top}{Number of top taxa to plot}
27

28
\item{Ord1}{Variable used to order sample (X axis) or split the barplot if split = TRUE}
29

Etienne Rifa's avatar
Etienne Rifa committed
30
\item{Fact1}{Variable used to change X axis tick labels and color (when split = FALSE)}
31

32
\item{split}{if TRUE make a facet_wrap like grouped by Ord1 (default FALSE)}
33

34
\item{relative}{Plot relative (TRUE, default) or raw abundance plot (FALSE)}
Sebastien Theil's avatar
Sebastien Theil committed
35

Etienne Rifa's avatar
update    
Etienne Rifa committed
36
37
\item{autoorder}{Order xaxis with gtools::mixedorder function (TRUE).}

Etienne Rifa's avatar
Etienne Rifa committed
38
39
\item{ylab}{Y axis title ("Abundance")}

Sebastien Theil's avatar
Sebastien Theil committed
40
\item{outfile}{Output html file.}
Etienne Rifa's avatar
Etienne Rifa committed
41
42
}
\value{
43
Returns barplots in an interactive plotly community plot
Etienne Rifa's avatar
Etienne Rifa committed
44
45
}
\description{
46
Barplots plotly
Etienne Rifa's avatar
Etienne Rifa committed
47
}