generate_ggplot: Generate a ggplot of the MetAnnotate data

Description Usage Arguments Value

View source: R/visualize.R

Description

Generates the ggplot of MetAnnotate data

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
generate_ggplot(
  metannotate_data,
  hit_totals,
  plotting_colour_data,
  plotting_taxon,
  normalizing_HMM,
  plot_type = "bar",
  space = "free",
  bubble_size_range = c(1, 20),
  alpha = 0.8,
  bubble_labels = TRUE
)

Arguments

metannotate_data

Tibble of normalized metannotate data - see normalize and combine_replicates

hit_totals

Tibble of total normalized hits per HMM/sample; this is generated in normalize and combine_replicates

plotting_colour_data

Tibble of plot colours generated by process_plotting_colours

plotting_taxon

The taxonomy rank to summarize bars/bubbles to; MUST MATCH the collapse taxon of the MetAnnotate table

normalizing_HMM

the name of the normalizing HMM (e.g., 'rpoB')

plot_type

Either 'bar' or 'bubble'

space

ggplot setting; 'fixed' or 'free'

bubble_size_range

numeric vector of length two with the small and large bubble sizes

alpha

ggplot value; transparency (for bubble plots)

bubble_labels

logical; show percent labels on the bubbles for bubble plots?

Value

A ggplot of MetAnnotate data


MetAnnotate/metannoviz documentation built on Aug. 2, 2020, 3:12 p.m.