bars_fun.Rd 1.11 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
Etienne Rifa committed
15
16
17
  ylab = "Abundance",
  outfile = "plot_compo.html",
  verbose = TRUE
Etienne Rifa's avatar
Etienne Rifa committed
18
19
20
)
}
\arguments{
Rifa Etienne's avatar
Rifa Etienne committed
21
\item{data}{a phyloseq object (output from decontam or generate_phyloseq)}
22

Rifa Etienne's avatar
Rifa Etienne committed
23
\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)}
24

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

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

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

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

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

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

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